Fix the open security issues: web-ext 10, safer workflows and pin, move the pin to chromium a1967a610 #12
No reviewers
Labels
No labels
bug
documentation
enhancement
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo-firefox!12
Loading…
Reference in a new issue
No description provided.
Delete branch "sec2-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What and why
#9 (SEC2-052) dev chain.
web-ext8.10.0 -> 10.8.0 andnpm audit fix. 15 advisories (3 critical) become 1:node-forge(high, GHSA-86w9-cpqp-85rv), which has no fixed release (1.4.0 is the latest) and is reached only through web-ext's Android bridge (@devicefarmer/adbkit), which lint, build and sign never run.scripts/audit.mjs(the same script postulo-chromium runs since its PR #40) fails on any other high or critical advisory and names that one with a reason; both workflows run it afternpm ci(npm run audit). Plainnpm audit --audit-level=highwould be red today for a finding nobody can fix, so the gate is the script, not that flag. Checked that it fails when the entry is removed.#10 (SEC2-082) credentials and build target. Both workflows check out with
persist-credentials: false.build.mjsandcheck-pin.mjsrefuse anyrepositoryinsource.jsonother than postulo-chromium's, before cloning (scripts/pin.mjs;POSTULO_PIN_ALLOWadds a repository for the tests only, nothing in the workflows sets it).#11 (SEC2-083) tag as pin. The pin must be a 40-hex commit sha always; a tag name or short sha is refused (the message names the commit to pin); once postulo-chromium has tags the pin must equal the commit of the latest one (annotated tags peeled), the name only a hint.
source.jsonnote and README updated.The pin moved
source.jsonref:b6c1009f391357ed8cf9c9b8b2e4be47c27a0a8c->a1967a61052d11996100acad860356b7abf6b419(tip of postulo-chromiummain). Between them, 4 commits: postulo-chromium PR #40 (1426d71, all its security-review and bug fixes: hardenedsrc/lib/api.js,allow.js,known.js,outbox.js,parse.js,rendering.js,captures.js,popup.js,review.js,options.js, new English strings, PRIVACY.md, web-ext 10 and an audit step there) and two Weblate pt-PT updates (#31). The Firefox package now ships those fixes. Built withnpm run build;web-ext lint: 0 errors, 0 warnings.Tests
npm test: 7 pass (3 existing, 4 new: tag name refused once a tag exists, commit of the latest (annotated) tag accepted and an older one refused, branch and short sha refused, other repository refused by check and by build with nothing cloned).npm run check:pin,npm run audit,npm run lintpass. Not run here: the CI itself, andweb-ext sign.Closes #9, #10, #11
🤖 Generated with Claude Code