File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4646 file : container/Dockerfile
4747 push : true
4848 platforms : linux/amd64
49+ # Optionally replace secrets.GITHUB_TOKEN with a PAT (use the same
50+ # secret name or adjust this mapping) to avoid API rate limits when
51+ # the pipeline fetches data for many repositories.
4952 secrets : |
50- # Optionally replace secrets.GITHUB_TOKEN with a PAT (store it under the same secret name
51- # or adjust this mapping) to avoid 401 responses and heavy rate limiting when the pipeline
52- # fetches metadata for thousands of modules.
5353 github_token=${{ secrets.GITHUB_TOKEN }}
5454 tags : ${{ steps.meta.outputs.image }}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ git config --global --add safe.directory /workspace
1717git log -1
1818TOKEN_FILE="/run/secrets/github_token"
1919if [ -f "$TOKEN_FILE" ]; then
20- GITHUB_TOKEN_VALUE="$(cat " $TOKEN_FILE")"
20+ GITHUB_TOKEN_VALUE="$(tr -d ' \r\n ' < " $TOKEN_FILE")"
2121 if [ -n "$GITHUB_TOKEN_VALUE" ]; then
2222 export GITHUB_TOKEN="$GITHUB_TOKEN_VALUE"
2323 fi
You can’t perform that action at this time.
0 commit comments