|
76 | 76 | echo "branch-exists=false" >> "${GITHUB_OUTPUT}" |
77 | 77 | git switch -c "${pr_branch}" |
78 | 78 | fi |
79 | | - - name: Generate temp GITHUB_TOKEN |
80 | | - id: create_token |
81 | | - uses: actions/create-github-app-token@v2 |
82 | | - with: |
83 | | - app-id: ${{ secrets.BOT_APP_ID }} |
84 | | - private-key: ${{ secrets.BOT_APP_KEY }} |
85 | | - # We could rely on the checkout action to persist the token in the |
86 | | - # repository config, but this way, we can prevent the previous steps |
87 | | - # from having unnecessary access. |
88 | | - - name: "Set up token authentication" |
89 | | - run: gh auth setup-git --hostname github.com |
90 | 79 | - name: "Run nox ${{ inputs.nox-args }}" |
91 | 80 | env: |
92 | 81 | # Ensure the latest pip version is used |
|
97 | 86 | # zizmor: ignore[template-injection] |
98 | 87 | run: | |
99 | 88 | nox ${{ inputs.nox-args }} |
| 89 | + - name: Generate temp GITHUB_TOKEN |
| 90 | + id: create_token |
| 91 | + uses: actions/create-github-app-token@v2 |
| 92 | + with: |
| 93 | + app-id: ${{ secrets.BOT_APP_ID }} |
| 94 | + private-key: ${{ secrets.BOT_APP_KEY }} |
| 95 | + # We could rely on the checkout action to persist the token in the |
| 96 | + # repository config, but this way, we can prevent the previous steps |
| 97 | + # from having unnecessary access. |
| 98 | + - name: "Set up token authentication" |
| 99 | + run: gh auth setup-git --force --hostname github.com |
100 | 100 | - name: Push new dependency versions and create a PR |
101 | 101 | env: |
102 | 102 | GITHUB_TOKEN: ${{ steps.create_token.outputs.token }} |
|
0 commit comments