-
-
Notifications
You must be signed in to change notification settings - Fork 78
ci: add OSV-Scanner, CycloneDX SBOM, and build attestations #1529
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
Show all changes
8 commits
Select commit
Hold shift + click to select a range
a8bc348
ci: add OSV-Scanner, CycloneDX SBOM, and build attestations
claude b968759
ci: pin cyclonedx-npm and broaden attestation subjects
claude 6959336
ci(deps): track cyclonedx-npm via devDependency for Dependabot
claude 55d578b
ci: skip cyclonedx-npm's optional libxmljs2 native dep
claude 4ed9ab2
ci: harden release workflow ordering and attestation scope
claude 8ca66da
deps: scope libxmljs2 override and bump engines.node to 20.18.0
claude 22d3f53
ci: bump engines.node to 20.19 and pin OSV-Scanner to a SHA
claude 5af5342
Apply suggestions from code review
jcputney 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,49 @@ | ||
| name: OSV-Scanner | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| pull_request: | ||
| branches: [ master ] | ||
| schedule: | ||
| - cron: '17 6 * * 1' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| security-events: write | ||
|
|
||
| jobs: | ||
| # Reusable workflows are pinned to an immutable commit SHA rather | ||
| # than a moving tag for supply-chain hardening: tags can be | ||
| # retargeted upstream, but a SHA guarantees the exact workflow | ||
| # code that was reviewed is what runs in CI. The SHA below | ||
| # corresponds to google/osv-scanner-action v2.2.4. Update | ||
| # deliberately; Dependabot's `github-actions` ecosystem keeps | ||
| # SHA-pinned references current via PRs. | ||
| scan-scheduled: | ||
| if: github.event_name != 'pull_request' | ||
| uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@9bb69575e74019c2ad085a1860787043adf47ccb" # v2.2.4 | ||
| with: | ||
| scan-args: |- | ||
| --recursive | ||
| --skip-git | ||
| ./ | ||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| security-events: write | ||
|
|
||
| scan-pr: | ||
| if: github.event_name == 'pull_request' | ||
| uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@9bb69575e74019c2ad085a1860787043adf47ccb" # v2.2.4 | ||
| with: | ||
|
jcputney marked this conversation as resolved.
|
||
| scan-args: |- | ||
| --recursive | ||
| --skip-git | ||
| ./ | ||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| security-events: write | ||
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
Oops, something went wrong.
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.