Skip to content

Commit

Permalink
Merge pull request #7170 from mook-as/ci/go-sync/write-token
Browse files Browse the repository at this point in the history
CI: go.work sync: Force use GitHub-provided token
  • Loading branch information
jandubois authored Jul 9, 2024
2 parents 9b4a5ce + 4b8597b commit 809f138
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/go-work-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ jobs:
id: has-token
run: echo "has-token=$HAS_TOKEN" >> "$GITHUB_OUTPUT"
env:
HAS_TOKEN: ${{ secrets.RUN_WORKFLOW_FROM_WORKFLOW != '' }}
# Temporarily disable use of token; we don't have a correct token set up
# (so we fail to push), so using the GitHub-provided token that doesn't
# trigger subsequent checks is better than failing to push.
HAS_TOKEN: ${{ false && secrets.RUN_WORKFLOW_FROM_WORKFLOW != '' }}
- name: Checkout with token
if: steps.has-token.outputs.has-token == 'true'
uses: actions/checkout@v4
Expand Down

0 comments on commit 809f138

Please sign in to comment.