Skip to content

Commit

Permalink
docs: explain github permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
gmeligio committed Sep 8, 2024
1 parent 0a7b0d3 commit 6736d19
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_push_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ on:
jobs:
build_push_android:
permissions:
# Allow to write packages to push the container image to the Github Container Registry
packages: write
contents: read
runs-on: ubuntu-22.04
env:
IMAGE_REPOSITORY_NAME: flutter-android
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ on:
jobs:
test_image:
permissions:
# Allow to write packages for the docker/scout-action to write a comment
packages: write
contents: read
# pull-requests write permission is needed for the docker/scout-action to write a comment
# Allow to write pull requests for the docker/scout-action to write a comment
pull-requests: write
# security-events write permission is needed for github/codeql-action/upload-sarif to upload SARIF results
# Allow to write security events for github/codeql-action/upload-sarif to upload SARIF results
security-events: write
runs-on: ubuntu-22.04
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update_flutter_dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
permissions:
# Enable OIDC token because Gitsign creates keys based on the GitHub runner OIDC credentials
# id-token: write
# Allow to write contents to push commits
contents: write
# Allow to read packages to pull the container image from GitHub Container Registry
packages: read
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/update_flutter_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ jobs:
permissions:
# Enable OIDC token because Gitsign creates keys based on the GitHub runner OIDC credentials
# id-token: write
# Allow to write contents to push commits
contents: write
# Allow to write pull requests to push commits and write comments
pull-requests: write
runs-on: ubuntu-22.04
steps:
Expand Down

0 comments on commit 6736d19

Please sign in to comment.