Skip to content

ci: correct workflow bugs and hardcoded values (#123) - #127

Merged
c-vigo merged 1 commit into
devfrom
chore/123-fix-github-workflow-config
Feb 20, 2026
Merged

c-vigo merged 1 commit into
devfrom
chore/123-fix-github-workflow-config

Conversation

@c-vigo

@c-vigo c-vigo commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

Description

Fix workflow bugs and hardcoded values identified during a thorough review of the .github/ directory. Also applies repo setting improvements (deleteBranchOnMerge, wiki, sha_pinning_required) via the GitHub API.

Type of Change

  • ci -- CI/CD pipeline changes

Changes Made

Workflow fixes (code):

  • security-scan.yml: Add missing release_date and build_timestamp outputs to the version step (were undefined, passing empty strings to the build-image action)
  • scorecard.yml: Update codeql-action/upload-sarif from v3 to v4 SHA for consistency with all other workflows
  • post-release.yml: Fix commit message Refs: line that inherited 10 spaces of YAML indentation (use printf instead of embedded newline)
  • ci.yml: Replace hardcoded vig-os/devcontainer URL with $GITHUB_REPOSITORY
  • release.yml: Replace undeclared release label in rollback issue with area:ci (from label taxonomy)
  • build-image/action.yml: Replace hardcoded OCI source label URL with ${{ github.server_url }}/${{ github.repository }}

Repo settings (applied via API, not in diff):

  • Enable deleteBranchOnMerge -- head branches auto-delete after merge
  • Disable wiki -- project uses docs-as-code
  • Enable sha_pinning_required -- enforce SHA-pinned actions

Changelog Entry

No changelog needed -- purely internal CI configuration fixes with no user-visible impact.

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

  • All pre-commit hooks pass (yamllint, check-yaml, check-action-pins, typos, validate-commit-msg)
  • Changes are YAML-only workflow config; runtime validation requires actual CI runs on the PR

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Repo settings (S1-S3) were applied via gh api during implementation and are not reflected in the diff. S4 (production environment for release publish) was deferred as it would require workflow changes to reference the environment.

W6 (ARM runner name verification) and W7 (prepare-release.yml Refs: line) were flagged as verify-only / by-design in the implementation plan and skipped.

Refs: #123

- Add missing release_date/build_timestamp outputs in security-scan.yml
- Update scorecard.yml codeql-action from v3 to v4 (consistency)
- Fix post-release.yml commit message Refs: line indentation bug
- Replace hardcoded repo URL in ci.yml with $GITHUB_REPOSITORY
- Use declared labels (bug, area:ci) in release.yml rollback issue
- Use dynamic github.server_url/github.repository for OCI source label

Refs: #123
@c-vigo c-vigo self-assigned this Feb 20, 2026
@c-vigo
c-vigo merged commit a78e4c8 into dev Feb 20, 2026
10 checks passed
@c-vigo
c-vigo deleted the chore/123-fix-github-workflow-config branch February 20, 2026 16:22
c-vigo added a commit that referenced this pull request Aug 11, 2026
## Description

Documents the smoke-test final-release human-approval gate shipped in
1.7.0 (#1391 / PR #1392). The mechanism is live-proven, but its
operational contract lived only in issue threads and workflow comments —
an operator following the current docs at the next final leg would hit a
silent 30-minute stall, because devkit's `release.yml` does not block on
downstream state and nothing signals that the smoke listener is waiting
for an approval.

Closes #1409

## Type of Change

- [x] `docs` -- Documentation only

## Changes Made

- **`docs/CROSS_REPO_RELEASE_GATE.md`**
- Receiver Responsibilities: new step for the approval gate — candidates
leave the smoke release PR unapproved (deferred-approval model, #902);
the final dispatch polls `reviewDecision` (20 s interval, 30 min) for a
human approval; cleanup-recreate semantics explain why the approval must
happen while the gate is waiting
- New **Contract dependencies** section: (1) smoke-test `main` must
require ≥1 approving review or `reviewDecision` never computes
(org-config-owned, org-config#127; workflow approvals blocked org-wide
by org-config#122); (2) the listener executes from the smoke repo's
default branch — asset is SSoT, urgent fixes are hotfixed to smoke main
and mirrored (precedents devkit-smoke-test#345/#353)
- Failure Signals: gate timeout added, distinguishing "nobody approved"
(approve + re-run failed jobs) from "required reviews dropped"
(org-config drift)
- **`docs/RELEASE_CYCLE.md`**
- Phase 4: notes the one human exception in the otherwise automated gate
- Phase 5 runbook: explicit operator step 2 — locate the waiting
listener run, approve the freshly created smoke release PR (`gh`
commands included), timeout recovery; subsequent steps renumbered
- `CHANGELOG.md` (+ synced `assets/workspace/.devcontainer/CHANGELOG.md`
copy, propagated by the `sync-manifest` hook)

## Changelog Entry

### Changed

- **Document the smoke-test final-release human-approval gate**
([#1409](#1409))
- `docs/CROSS_REPO_RELEASE_GATE.md` now describes the approval gate
shipped in 1.7.0 and its two contract dependencies: required reviews on
smoke-test `main` (org-config-owned) and default-branch listener
execution (asset SSoT, hotfix-main + mirror procedure)
- `docs/RELEASE_CYCLE.md` Phase 5 gains the explicit operator step:
approve the freshly created smoke-test release PR while the final
dispatch is paused at the gate, with timeout recovery

## Testing

- [x] Manual testing performed (describe below)

### Manual Testing Details

Docs-only change — TDD not applicable. Full `just precommit` suite green
locally (the `sync-manifest` hook propagated the changelog to the
workspace asset; committed). Content verified against the shipped gate
implementation
(`assets/smoke-test/.github/workflows/repository-dispatch.yml`, `Gate
final release on human approval of release PR`), the org-config live
config (`vig-os.jsonnet` devkit-smoke-test `Main protection`), and the
1.7.0 train record (#1391, org-config#122/#127, smoke run 31221248513).

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] I have updated the documentation accordingly (edit
`docs/templates/`, then run `just docs`)
- [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and
pasted the entry above)
- [x] My changes generate no new warnings or errors
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.

1 participant