Skip to content

Commit bb671c8

Browse files
authored
👷 ci(release): report a missing release token (#692)
Every dispatch of [Prepare release](https://github.com/tox-dev/pipdeptree/actions/workflows/prepare-release.yaml) has failed at the checkout step with `Input required and not supplied: token`, on 2026-08-08, 2026-08-13 and 2026-08-20. The message names neither the missing secret nor the environment it belongs in, and reaching it costs a dispatch and a look at the log. `RELEASE_PAT` is absent from the `release-auth` environment, and the same failure returns whenever the token expires or gets revoked. A guard ahead of the checkout now reads the secret and stops with `RELEASE_PAT is unset; add it to the release-auth environment`, which shows up on the run summary as an annotation. Supplying the token stays a separate step, done in the repository settings.
1 parent d0421c3 commit bb671c8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/prepare-release.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ jobs:
1717
permissions:
1818
contents: write # the release commit and its tag go straight to main
1919
steps:
20+
# An expired or revoked PAT otherwise surfaces as checkout's "Input required and not supplied: token".
21+
- name: Check the release token is set
22+
env:
23+
RELEASE_PAT: ${{ secrets.RELEASE_PAT }}
24+
run: |
25+
if [ -z "$RELEASE_PAT" ]; then
26+
echo "::error::RELEASE_PAT is unset; add it to the release-auth environment"
27+
exit 1
28+
fi
2029
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2130
with:
2231
fetch-depth: 0 # The next version comes from the tags.

0 commit comments

Comments
 (0)