Skip to content

fix: disable ZAP issue creation (403 on GITHUB_TOKEN)#122

Merged
Pyronewbic merged 5 commits into
mainfrom
claude/investigate-ci-failures-vo37H
May 19, 2026
Merged

fix: disable ZAP issue creation (403 on GITHUB_TOKEN)#122
Pyronewbic merged 5 commits into
mainfrom
claude/investigate-ci-failures-vo37H

Conversation

@Pyronewbic

Copy link
Copy Markdown
Owner

The deploy workflow only has contents: read + id-token: write permissions.
ZAP's default behaviour of creating GitHub issues on findings fails with 403.
allow_issue_writing: false disables that; the HTML report is still uploaded as an artifact.

https://claude.ai/code/session_01B8vFxRRcgDukfk2AQGbsgP

claude added 5 commits May 19, 2026 06:13
The deploy workflow only has `contents: read` + `id-token: write` permissions.
ZAP's default behaviour of creating GitHub issues on findings fails with 403.
`allow_issue_writing: false` disables that; the HTML report is still uploaded as an artifact.

https://claude.ai/code/session_01B8vFxRRcgDukfk2AQGbsgP
Dependabot PRs #101 (dotenv 16→17) and #102 (axios-cookiejar-support 5→7)
updated yarn.lock but not package-lock.json. CI uses npm install, so every
run had to ad-hoc resolve these mismatches, causing non-deterministic behaviour
in the api job. Regenerated with npm install --package-lock-only.

https://claude.ai/code/session_01B8vFxRRcgDukfk2AQGbsgP
Two bugs:
1. api.js health endpoint reported cardDatabase: true even when the DB was
   empty — `sc("test",1).length >= 0` is always true. Fixed to
   `getAllSets().length > 0`.
2. api-test.js had no guard for set-browser tests (collection tracking,
   set detail) that require real set data. Added testCardDb() helper
   mirroring testDb(), which skips these 4 tests when cardDatabase is false.

https://claude.ai/code/session_01B8vFxRRcgDukfk2AQGbsgP
@Pyronewbic Pyronewbic merged commit 63ad2b2 into main May 19, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants