feat: add scorecard and branch-target-check workflows#69
Merged
Sandy-at-Tazama merged 1 commit intodevfrom Apr 5, 2026
Merged
Conversation
- Add canonical scorecard.yml (OSSF Scorecard supply-chain security):
- Triggers: push/[main,dev], schedule (weekly), branch_protection_rule
- publish_results=true only on main/schedule/branch_protection_rule
- Pinned to latest SHAs: checkout v6.0.2, scorecard-action v2.4.3,
upload-artifact v7.0.0, codeql-action/upload-sarif v4.34.1
- All rule repos receive this file (no exclusions needed in frmscoe)
- Add branch-target-check.yml:
- Enforces dev->main and release/v<N>.*->main PR targets
- Rejects bare release/v (no version number) via release/v[0-9]* glob
- Fails with actionable message and \gh pr edit --base dev\ hint
- Copies to all repos (no exclusion needed)
- Fixed github.head_ref injection risk (passed via env var)
Mirror of tazama-lf/workflows#33
Sandy-at-Tazama
approved these changes
Apr 5, 2026
Justus-at-Tazama
added a commit
that referenced
this pull request
Apr 8, 2026
Applies all changes from tazama-lf/workflows PR #76 (workflow audit fixes - batch 1) to frmscoe/workflows. Changes are synced verbatim from the canonical source. - fix(njsscan): fix SARIF upload guard, category, upgrade upload-sarif v4 (#68) - fix(gpg-verify): make curl error handler reachable under bash -e (#69) - fix(dco-check, gpg-verify): replace mutable branch refs with immutable SHAs (#70) - fix(package-rule): add ref guard to prevent push from non-canonical branches (#71) - fix(gpg-verify): rename workflow to Signature Verify, update header comment (#72) - fix(package-rule): pass GH_TOKEN to docker build via BuildKit secret (#73) - fix(sbom): pass GH_TOKEN to docker build via BuildKit secret (#74) - fix(dockerfile-linter): skip hadolint and upload when no Dockerfile present (#75) - fix(dockerfile-linter, sbom): address CodeRabbit review findings Signed-off-by: Justus-at-Tazama <jortlepp@contractor.linuxfoundation.org>
Justus-at-Tazama
added a commit
that referenced
this pull request
Apr 8, 2026
Applies all changes from tazama-lf/workflows PR #76 (workflow audit fixes - batch 1) to frmscoe/workflows. Changes are synced verbatim from the canonical source. - fix(njsscan): fix SARIF upload guard, category, upgrade upload-sarif v4 (#68) - fix(gpg-verify): make curl error handler reachable under bash -e (#69) - fix(dco-check, gpg-verify): replace mutable branch refs with immutable SHAs (#70) - fix(package-rule): add ref guard to prevent push from non-canonical branches (#71) - fix(gpg-verify): rename workflow to Signature Verify, update header comment (#72) - fix(package-rule): pass GH_TOKEN to docker build via BuildKit secret (#73) - fix(sbom): pass GH_TOKEN to docker build via BuildKit secret (#74) - fix(dockerfile-linter): skip hadolint and upload when no Dockerfile present (#75) - fix(dockerfile-linter, sbom): address CodeRabbit review findings Signed-off-by: Justus-at-Tazama <jortlepp@contractor.linuxfoundation.org>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Mirror of tazama-lf/workflows#33.
Changes
scorecard.yml— OSSF Scorecard supply-chain security workflowpushto[main, dev], weekly schedule,branch_protection_rulepublish_results=trueonly onmain/ schedule / branch-protection events — dev-branch runs score without overwriting the badgeactions/checkout@v6.0.2,ossf/scorecard-action@v2.4.3,actions/upload-artifact@v7.0.0,github/codeql-action/upload-sarif@v4.34.1frmscoeare service/rule reposbranch-target-check.yml— PR base-branch enforcementmainfrom any branch other thandevorrelease/v<N>.*release/v(no version number) viarelease/v[0-9]*globgh pr edit --base devhint in the error messagegithub.head_refpassed viaenv:to prevent expression injection