Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ name: Audit
on:
push:
branches: [main]
# Also on pull requests. Without this the Go stdlib CVE that broke the
# clean-security-scan claim sat undetected until it was already on main,
# because this workflow only ran on push, weekly, and manually. The scan is
# cheap and catches that class before merge instead of after.
pull_request:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every other PR-triggered workflow in this repo (ci.yml, docker-publish.yml, ns8-module.yml) declares concurrency with cancel-in-progress: true. With this trigger, each push to a PR now starts a full frontend install/build plus three go install/scan runs, so a burst of pushes leaves several redundant full audits running at once; group: audit-${{ github.ref }} + cancel-in-progress: true would match the existing convention.

schedule:
- cron: '20 6 * * 1' # weekly, Monday — catches newly-disclosed CVEs even with no code changes
workflow_dispatch:
Expand All @@ -17,6 +22,11 @@ permissions: read-all
jobs:
scorecard:
name: OpenSSF Scorecard
# Scorecard refuses any ref but the default branch ("Only the default branch
# main is supported"), so running it on a PR or a workflow_dispatch against a
# feature branch produced a red run that meant nothing and buried the real
# result from the claims guard. Schedule and push-to-main still cover it.
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
security-events: write
Expand Down
Loading