Skip to content

release: v3.0.3 - #7

Merged
Shinrai merged 3 commits into
masterfrom
fix/audit-labels-and-bot
May 20, 2026
Merged

Shinrai merged 3 commits into
masterfrom
fix/audit-labels-and-bot

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented May 20, 2026

Copy link
Copy Markdown
Contributor

🚀 What's Changed

💥 Breaking Changes

No breaking changes

✨ Features

No new features

🐛 Bug Fixes

  • fix(release): pass build_command through to reusable-release-management (ae4e9ff)
  • fix(audit): use canonical label names + attribute audit issues to bot App (59da596)

🔧 Other Changes

No other changes

👥 Contributors

Shinrai and others added 3 commits May 20, 2026 13:23
… App

Two related fixes to the master-commit audit workflow:

1. Label names: the action's default `issue_labels` was
   `bot:audit,priority:high` — neither matched the org's label catalog
   (`data/github-labels.json` has no `bot:` family, and the canonical
   high-priority label is `priority: high` with a space). Result: the
   audit auto-created two ad-hoc labels (`bot:audit`, `priority:high`)
   the first time it fired, instead of using the existing catalog
   entries. Switch the default to `type: ci,priority: high` — both
   canonical names present in the catalog.

2. Bot attribution: the audit issue was filed by github-actions[bot]
   because the workflow passed `secrets.GITHUB_TOKEN` directly. Wire
   the existing `create-app-token` composite so the issue is filed by
   the consumer's bot App when its credentials are available; falls
   back to GITHUB_TOKEN otherwise.

Files touched:
- .github/actions/git/jobs/audit-commit-subject/action.yml
  (default labels + clarified description)
- .github/workflows/local-master-commit-audit.yml
  (App token step + canonical labels)
- examples/individual-repo-workflows/release-companions/master-commit-audit.yml
  (App token step + canonical labels + documentation on the secrets block)

Surfaced by the v3.0.2 release-merge: the `release: 3.0.2` commit on
master tripped the audit (which expects `release: vX.Y.Z`, not bare
`X.Y.Z`), exposing the label-naming and attribution bugs at once.
workflow-release.yml passed inputs.build_command to reusable-build-and-test
but dropped it on the way to reusable-release-management. Result: the
release-management leg silently used its default `npm run build:ci`,
ignoring any consumer override.

Visible failure on this repo's release-flow: build-and-test succeeded
(echo override applied), then release-management failed at
`Build failed: npm run build:ci` because the override never reached it.

One-line addition: `build_command: ${{ inputs.build_command }}` in the
release job's `with:` block. test_command isn't passed because
release-management's create-release-pr action doesn't currently accept
it (its build step is the only command-injection point — tests are
re-run via build-and-test in the prior job).
@cldmv-bot cldmv-bot Bot added release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: bug Something is broken or not behaving as expected labels May 20, 2026
@Shinrai
Shinrai merged commit 66722a8 into master May 20, 2026
8 checks passed
@cldmv-bot
cldmv-bot Bot deleted the fix/audit-labels-and-bot branch May 20, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Marks a pull request as a pending release — merge to publish a new version semver: patch This release contains only backwards-compatible bug fixes type: bug Something is broken or not behaving as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant