Expose GITHUB_TOKEN as Docker secret

Signed-off-by: Brett Logan <lindluni@github.com>
This commit is contained in:
Brett Logan 2023-01-04 00:16:23 -05:00
parent 1137155331
commit b4cd05cfe8

View file

@ -54,9 +54,10 @@ jobs:
BUILD_DATE=${{ env.BUILD_DATE }}
BUILD_REVISION=${{ github.sha }}
BUILD_VERSION=${{ github.sha }}
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
load: true
push: false
secrets: |
GITHUB_TOKEN=GITHUB_TOKEN${{ secrets.GITHUB_TOKEN }}
tags: |
ghcr.io/github/super-linter:${{ matrix.images.container-image-id-prefix }}${{ github.sha }}
ghcr.io/github/super-linter:${{ matrix.images.container-image-id-prefix }}test
@ -179,9 +180,10 @@ jobs:
BUILD_DATE=${{ env.BUILD_DATE }}
BUILD_REVISION=${{ github.sha }}
BUILD_VERSION=${{ github.sha }}
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
load: false
push: true
secrets: |
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
tags: |
github/super-linter:${{ matrix.images.container-image-id-prefix }}latest
ghcr.io/github/super-linter:${{ matrix.images.container-image-id-prefix }}latest