Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .github/workflows/scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ jobs:
- name: Checkout consumer repo
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
# On a pull_request event the default ref is refs/pull/<N>/merge, a ref
# GitHub does not reliably publish - fetching it fails with "couldn't find
# remote ref" and reds the whole scan. Check out the PR head commit directly
# (deterministic, always present); fall back to the pushed commit on push.
ref: ${{ github.event.pull_request.head.sha || github.sha }}
fetch-depth: 0

# Check out SecureCheck at the SAME ref the consumer pinned (github.workflow_ref
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Security Scan

on:
push:
branches: [main]
pull_request:

permissions:
contents: read

jobs:
scan:
# Dogfood: run SecureCheck's own reusable scan against this repo. This also acts
# as the regression guard for the scan workflow itself - if the pull_request
# checkout (or anything else in scan.yml) breaks again, this job goes red on the
# next PR instead of silently failing only in downstream consumer repos.
uses: ./.github/workflows/scan.yml
secrets: inherit
Loading