ci: sync canonical workflows from tazama-lf and overhaul sync-workflows.yml#76
Merged
Justus-at-Tazama merged 2 commits intodevfrom Apr 7, 2026
Merged
ci: sync canonical workflows from tazama-lf and overhaul sync-workflows.yml#76Justus-at-Tazama merged 2 commits intodevfrom
Justus-at-Tazama merged 2 commits intodevfrom
Conversation
Sync 17 canonical workflow files from tazama-lf/workflows. branch-target-check.yml was already up to date. Changes applied across all synced files: - Pin all action SHAs (checkout v6.0.2, setup-node v6.3.0, codeql v4.35.1, scorecard-action v2.4.3, upload-artifact v7.0.0, etc.) - gpg-verify.yml: fix inverted git log range, replace circular check-runs API call with commit verification endpoint, add github-actions[bot] exclusion, guard empty commit range - scorecard.yml: remove dev from push.branches trigger (ossf/scorecard-action enforces default branch only) - package-rule-rc.yml / package-rule.yml: pull latest reusable workflow logic - node.js.yml, conventional-commits.yml, dco-check.yml, etc.: pin SHAs publish.yml / release-train.yml synced with improvements only (scope and org references kept as @frmscoe): - Pin checkout and setup-node SHAs - publish.yml: use node -p instead of jq, add continue-on-error to Slack step, use curl --fail -sS - release-train.yml: add GH_USERNAME env var, use \ instead of inline secret reference (prevents injection) Signed-off-by: Justus-at-Tazama <jortlepp@contractor.linuxfoundation.org>
- Add concurrency block: cancel-in-progress prevents parallel sync runs - Pin actions/checkout to SHA de0fac2e4500dabe0009e67214ff5f5447ce83dd (v6.0.2) - Remove manual gh CLI install step (pre-installed on ubuntu-latest; v2.14.7 was 2 years out of date) - Add SSH commit signing (base64-encoded SSH_SIGNING_KEY secret, same Justus-at-Tazama identity as tazama-lf/workflows). Fails fast if secret is missing or key is invalid. - Fix Get actor details: previous version called pulls API on push/ workflow_dispatch events where pull_request.number is empty; add fallback to github.actor for non-PR triggers - Fix branch strategy: delete and recreate sync-workflows-update each run instead of checkout+pull (avoids accumulating stale changes) - Add dev branch existence check: create from default branch if absent - Add missing cd .. at end of loop (latent bug: loop was broken after first repo) - Fix PR token handling: remove echo-to-file + gh auth login + unset pattern; GH_TOKEN env var used directly (gh CLI picks it up automatically) - Fix PR body: use variable instead of inline interpolation; use two-arg commit message (-m msg -m body) instead of concatenation - Change PR_REVIEWERS source: vars.PR_REVIEWERS -> secrets.GH_USERNAME (consistent with tazama-lf/workflows) - Add publish.yml / version-check.yml / release-train.yml exclusion: these are library-only and should not be copied to rule repos Signed-off-by: Justus-at-Tazama <jortlepp@contractor.linuxfoundation.org>
13b1318 to
207eb60
Compare
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>
1 task
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
Commit 1: Sync 17 canonical workflow files from tazama-lf/workflows
publish.ymlandrelease-train.yml: pinned action SHAs,node -pinstead of jq,curl --fail -sS,GH_USERNAMEenv var (scope kept as@frmscoe)Commit 2: Overhaul sync-workflows.yml
concurrencyblock to cancel in-progress runsactions/checkoutto SHA (v6.0.2)github.actorfor push/workflow_dispatch (was calling pulls API with empty PR number)sync-workflows-updateeach run (was checkout+pull, prone to conflicts)devbranch existence check with auto-create from default branchcd ..at end of repo loop (latent loop-breaking bug)GH_TOKENenv var directly (remove echo-to-file pattern)vars.PR_REVIEWERS->secrets.GH_USERNAMEpublish.yml,version-check.yml,release-train.ymlfrom rule-repo sync (library-only files)