Skip to content

Add reusable scan workflow for consumer repos#5

Merged
satsura merged 1 commit into
mainfrom
feat/reusable-workflow
Jul 11, 2026
Merged

Add reusable scan workflow for consumer repos#5
satsura merged 1 commit into
mainfrom
feat/reusable-workflow

Conversation

@satsura

@satsura satsura commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Mirrors how startmatter/defectdojo-ci is consumed today, so swapping one for the other is an eight-line change in a repository.

jobs:
  security:
    uses: startmatter/cerberus/.github/workflows/scan.yml@main
    with:
      runner: self-hosted
      dns: 1.1.1.1,8.8.8.8
    secrets:
      K_SARIF_URL: ${{ secrets.K_SARIF_URL }}
      K_SARIF_SECRET: ${{ secrets.K_SARIF_SECRET }}
  • Checks out with fetch-depth: 0 (Gitleaks scans the whole history)
  • Secrets are declared explicitly, not inherited — secrets: inherit does not cross organization boundaries and callers may live in another org
  • Skips with a warning when the ingest secrets are absent, so merging this into a repo before the tracker integration exists cannot turn its pipelines red
  • REGISTRY_TOKEN for callers in another organization: their own job token cannot read a private package owned by ours

@satsura satsura merged commit a57f94f into main Jul 11, 2026
3 checks passed
@satsura satsura deleted the feat/reusable-workflow branch July 11, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants