Skip to content

Commit

Permalink
Scope down github token permissions (#1555)
Browse files Browse the repository at this point in the history
Summary: Update mirror_release to only have `package: write` on the job
Remove some dupe `content: read` perms.

Type of change: /kind cleanup

Test Plan: All the updated actions should continue to work.

Signed-off-by: Vihang Mehta <[email protected]>
  • Loading branch information
vihangm authored Jun 21, 2023
1 parent 4c79b64 commit d9c977b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/mirror_releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ on:
types: [released]
permissions:
contents: read
packages: write
jobs:
sync_image:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest-16-cores
steps:
- uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release_update_docs_px_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
generate-docs:
needs: get-dev-image
runs-on: ubuntu-latest-8-cores
permissions:
contents: read
container:
image: ${{ needs.get-dev-image.outputs.image-with-tag }}
steps:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release_update_readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ permissions:
jobs:
update-readme:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
with:
Expand Down

0 comments on commit d9c977b

Please sign in to comment.