Skip to content

Commit

Permalink
Change workflow permissions to be minimally scoped. (#7217)
Browse files Browse the repository at this point in the history
* Update ci_main.yml to contents read

Signed-off-by: Joyce <joycebrum@google.com>

* Update ci_ts_latest.yml to contents read

Signed-off-by: Joyce <joycebrum@google.com>

---------

Signed-off-by: Joyce <joycebrum@google.com>
  • Loading branch information
joycebrum authored and benlesh committed Apr 24, 2023
1 parent e88a266 commit 7748df4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
types: ['opened', 'reopened', 'synchronize']

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci_ts_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
types: ['opened', 'reopened', 'synchronize']

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 7748df4

Please sign in to comment.