|
42 | 42 | runs-on: ubuntu-latest |
43 | 43 | name: Check if actor is dependabot |
44 | 44 | permissions: |
45 | | - contents: read |
| 45 | + contents: read # minimum required permission for job execution |
46 | 46 | outputs: |
47 | 47 | is_dependabot: ${{ steps.check.outputs.is_dependabot }} |
48 | 48 | steps: |
|
66 | 66 | runs-on: ubuntu-latest |
67 | 67 | name: Get SHA information |
68 | 68 | permissions: |
69 | | - contents: read |
| 69 | + contents: read # minimum required permission for job execution |
70 | 70 | outputs: |
71 | 71 | sha: ${{steps.getSHA.outputs.SHA}} |
72 | 72 | steps: |
|
90 | 90 | runs-on: ubuntu-latest |
91 | 91 | name: Get Changed files |
92 | 92 | permissions: |
93 | | - contents: read |
| 93 | + contents: read # to checkout repository code and list changed files (actions/checkout, Ana06/get-changed-files) |
94 | 94 | outputs: |
95 | 95 | should_execute_tests: ${{ steps.processing.outputs.should_execute_tests }} |
96 | 96 | steps: |
@@ -125,8 +125,8 @@ jobs: |
125 | 125 | build-images: |
126 | 126 | name: Build Docker Images |
127 | 127 | permissions: |
128 | | - id-token: write |
129 | | - contents: read |
| 128 | + id-token: write # for AWS OIDC authentication (aws-actions/configure-aws-credentials) |
| 129 | + contents: read # to checkout repository code (actions/checkout) |
130 | 130 | needs: [check_actor, get_sha, get_changed_files] |
131 | 131 | strategy: |
132 | 132 | matrix: |
@@ -224,8 +224,8 @@ jobs: |
224 | 224 | name: Create multi-arch manifest for ECR |
225 | 225 | runs-on: ubuntu-latest |
226 | 226 | permissions: |
227 | | - id-token: write |
228 | | - contents: read |
| 227 | + id-token: write # for AWS OIDC authentication (aws-actions/configure-aws-credentials) |
| 228 | + contents: read # minimum required permission for job execution |
229 | 229 | needs: [build-images, check_actor] |
230 | 230 | if: ${{ needs.check_actor.outputs.is_dependabot == 'false' }} |
231 | 231 | steps: |
@@ -264,7 +264,7 @@ jobs: |
264 | 264 | name: Create multi-arch manifest for DockerHub |
265 | 265 | runs-on: ubuntu-latest |
266 | 266 | permissions: |
267 | | - contents: read |
| 267 | + contents: read # minimum required permission for job execution |
268 | 268 | needs: [build-images, check_actor] |
269 | 269 | if: ${{ needs.check_actor.outputs.is_dependabot == 'false' }} |
270 | 270 | steps: |
|
0 commit comments