-
-
Notifications
You must be signed in to change notification settings - Fork 0
chore: add CodeQL workflow and badge #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,24 @@ | ||||||||||||||
| name: CodeQL | ||||||||||||||
|
|
||||||||||||||
| on: | ||||||||||||||
| push: | ||||||||||||||
| branches: [main] | ||||||||||||||
| pull_request: | ||||||||||||||
| branches: [main] | ||||||||||||||
| schedule: | ||||||||||||||
| - cron: "0 6 * * 1" | ||||||||||||||
|
|
||||||||||||||
| jobs: | ||||||||||||||
| analyze: | ||||||||||||||
| name: Analyze | ||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||
| permissions: | ||||||||||||||
| security-events: write | ||||||||||||||
| steps: | ||||||||||||||
| - uses: actions/checkout@v4 | ||||||||||||||
|
||||||||||||||
| - uses: actions/checkout@v4 | |
| - uses: actions/checkout@v6 |
Copilot
AI
Mar 30, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This repository contains JavaScript code (e.g., npm/bin/ferrflow.js), but the CodeQL init is configured to scan only actions. Consider adding javascript-typescript to languages so CodeQL covers the Node wrapper as well. If you add more languages, update/remove the hard-coded category: /language:actions to avoid mislabeling results.
| languages: actions | |
| - uses: github/codeql-action/analyze@v3 | |
| with: | |
| category: /language:actions | |
| languages: actions, javascript-typescript | |
| - uses: github/codeql-action/analyze@v3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The job-level
permissionsblock only grantssecurity-events: write; all other scopes (includingcontents) becomenone. That can preventactions/checkoutfrom reading the repository and cause the workflow to fail. Add at leastcontents: read(and ideally alsoactions: readper CodeQL guidance) alongsidesecurity-events: write.