mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-10 08:05:14 +02:00
ci(release): restore RELEASE_PAT for branch push
Re-applies the RELEASE_PAT wiring on top of the URL-casing fix in #188. The default GITHUB_TOKEN authenticates as github-actions[bot], which cannot be added to either restrictions or bypass_pull_request_allowances on a protected branch. With #188 removing the URL redirect, the PAT auth header now survives all the way to the protected-branch hook; since RELEASE_PAT belongs to andreybavt (verified via /user) and andreybavt is in the bypass list, the push should now be accepted.
This commit is contained in:
parent
b43000f961
commit
8dadc41b4d
2 changed files with 6 additions and 2 deletions
|
|
@ -31,6 +31,9 @@ describe('release workflow', () => {
|
|||
assert.match(workflow, /pnpm run semantic-release$/m);
|
||||
assert.match(workflow, /KTX_RELEASE_KIND: \$\{\{ inputs.release_kind \}\}/);
|
||||
assert.match(workflow, /FORCE_RELEASE: \$\{\{ inputs.force_release \}\}/);
|
||||
assert.match(workflow, /token: \$\{\{ secrets.RELEASE_PAT \}\}/);
|
||||
assert.match(workflow, /GITHUB_TOKEN: \$\{\{ secrets.RELEASE_PAT \}\}/);
|
||||
assert.doesNotMatch(workflow, /GITHUB_TOKEN: \$\{\{ secrets\.GITHUB_TOKEN \}\}/);
|
||||
assert.doesNotMatch(workflow, /NODE_AUTH_TOKEN/);
|
||||
assert.doesNotMatch(workflow, /^ push:/m);
|
||||
assert.doesNotMatch(workflow, /^ pull_request:/m);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue