Skip to content

Commit

Permalink
ci: Use eos-shell-build token for f-e-d-c PR
Browse files Browse the repository at this point in the history
The PRs created by `flatpak-external-data-checker` currently do not
trigger the PR checks to run. This is because the default `GITHUB_TOKEN`
used to create the PR cannot trigger a recursive GitHub Actions
workflow. That's a safety measure to prevent infinitely recursing
workflows.

Instead, use a personal access token (PAT) from the eos-shell-build user
to create the PR. This token was created specifically for use in GitHub
Actions with `repo` scope. The token has been recorded in the
`WORKFLOW_TOKEN` secret.
  • Loading branch information
dbnicholson committed Dec 14, 2023
1 parent db90ece commit b10c44f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_EMAIL: [email protected]
EMAIL: [email protected]
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
working-directory: build-aux/flatpak
run: |
/app/flatpak-external-data-checker --update --verbose --never-fork \
Expand Down

0 comments on commit b10c44f

Please sign in to comment.