-
Notifications
You must be signed in to change notification settings - Fork 0
ci(codeql): switch to advanced workflow + drop default setup #72
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| # Advanced-setup CodeQL workflow. | ||
| # | ||
| # Default-setup only runs CodeQL on push-to-default-branch + weekly | ||
| # schedule. The Enterprise "PRs" ruleset requires a Code Scanning | ||
| # result before accepting a push to any non-default branch — a | ||
| # chicken-and-egg the default setup can't satisfy. | ||
| # | ||
| # This workflow runs on push to every branch (excluding noisy | ||
| # dependabot fans), on every PR targeting main, and weekly so the | ||
| # main-branch result stays fresh. | ||
| # | ||
| # Maintained centrally at github.com/jbdevprimary/gh-fleet-sync. | ||
| # Sync via `scripts/fanout.sh` in that repo. Do not edit in place. | ||
|
|
||
| name: CodeQL | ||
|
|
||
| on: | ||
| push: | ||
| branches-ignore: | ||
| - 'dependabot/**' | ||
| - 'gh-readonly-queue/**' | ||
| pull_request: | ||
| branches: [main] | ||
| schedule: | ||
| # 04:17 UTC every Monday — well outside any deploy / release-please | ||
| # cron windows so it doesn't fight for the runner queue. | ||
| - cron: '17 4 * * 1' | ||
|
|
||
| # Only the most recent run per ref needs to be live; stale-cancel | ||
| # everything else so the queue stays unclogged when a feature branch | ||
| # gets a flurry of pushes. | ||
| concurrency: | ||
| group: codeql-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| analyze: | ||
| name: Analyze (${{ matrix.language }}) | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 20 | ||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| security-events: write | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - language: javascript-typescript | ||
| build-mode: none | ||
| - language: actions | ||
| build-mode: none | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v3 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
| build-mode: ${{ matrix.build-mode }} | ||
| # 'security-and-quality' matches the default-setup query | ||
| # suite so disabling default-setup doesn't lose coverage. | ||
| queries: security-and-quality | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v3 | ||
| with: | ||
|
jbdevprimary marked this conversation as resolved.
|
||
| category: "/language:${{ matrix.language }}" | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.