Skip to content

Commit

Permalink
feat(ci): use custom token for ghcr registry (#1260)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwrau authored Nov 28, 2024
1 parent 2b20359 commit 48676d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/scripts/trivy-login-to-registries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ fi

declare -A IMAGE_PULL_TOKENS=(
["registry-gitlab.teuto.net"]="${TEUTO_PORTAL_WORKER_PULL_TOKEN?}"
["ghcr.io"]="${GHCR_PULL_TOKEN}"
)

trivy image --download-db-only
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/check-licenses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
- run: /home/linuxbrew/.linuxbrew/bin/brew install trivy
- env:
TEUTO_PORTAL_WORKER_PULL_TOKEN: ${{ secrets.TEUTO_PORTAL_WORKER_PULL_TOKEN }}
GHCR_PULL_TOKEN: ${{ secrets.GHCR_PULL_TOKEN }}
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
./.github/scripts/scan-for-licenses.sh "charts/${{ needs.getChangedChart.outputs.chart }}"
Expand Down

0 comments on commit 48676d5

Please sign in to comment.