Repository navigation
fix: scope scorecard permissions to the job, not the workflow - #8
Merged
Merged
Conversation
scorecard-action's publish step rejects submissions from a workflow that grants its write permissions (id-token, previously security-events) at the workflow level instead of job-scoped to the job actually running the action - see CLDMV/.github's reusable-scorecard.yml for the full explanation. Moves this repo's permissions grant onto the analyze job, matching OSSF's own example workflow and the updated caller template.
Shinrai
added a commit
that referenced
this pull request
Oct 31, 2026
CodeQL js/polynomial-redos alerts #6, #7 and #8: copyrightHolder's trailing 'all rights reserved' and punctuation patterns and the new header's @copyright match let adjacent quantifiers compete for the same white space. copyrightHolder now uses anchored patterns and string operations, and the @copyright value is read with indexOf and trim. The modeline matcher had the same shape ([ \t]*(.*?)[ \t]* before an optional closer) and a 'set' prefix whose white space overlapped the options; it now captures the rest of the line and trims the closer with string operations, and takes one white space character after 'set'.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 What's Changed
💥 Breaking Changes
No breaking changes
✨ Features
No new features
🐛 Bug Fixes
📦 Dependencies
No dependency updates
🔧 Other Changes
No other changes
👥 Contributors