Skip to content

Commit 55d554e

Browse files
committed
pass github token to tflint
1 parent 4fc4b74 commit 55d554e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/build_all_images.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ jobs:
3636
} >> "$GITHUB_OUTPUT"
3737
3838
build_tool_images:
39-
# build common tool images with a lower scoped github token as it uses a 3rd party docker image with github cli installed to verify attestation of tflint binary.
39+
# build common tool images with a lower scoped github token
40+
# as it uses a 3rd party docker image with github cli installed to verify attestation of tflint binary
41+
# and we dont want to make a high scoped token available to that image
4042
# token needs attestation read so it can verify attestation of tflint binary
4143
runs-on: ubuntu-22.04
4244
permissions:
@@ -65,6 +67,8 @@ jobs:
6567
run: |
6668
make build-tflint
6769
docker save "local_tflint:latest" -o tflint_image.tar
70+
env:
71+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6872

6973
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
7074
name: Upload docker images

0 commit comments

Comments
 (0)