Compare commits
2 Commits
cf183d9bb0
...
ae86431d50
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae86431d50 | ||
|
|
9c7f6fbdf4 |
@@ -151,20 +151,33 @@ jobs:
|
||||
|
||||
- name: Upload coverage badge
|
||||
id: badge
|
||||
if: ${{ always() && hashFiles('coverage.out') != '' }}
|
||||
if: ${{ always() && steps.coverage.outcome == 'success' }}
|
||||
uses: https://git.hrafn.xyz/aether/vociferate/coverage-badge@v1.1.0
|
||||
with:
|
||||
artefact-bucket-name: ${{ vars.ARTEFACT_BUCKET_NAME }}
|
||||
artefact-bucket-endpoint: ${{ vars.ARTEFACT_BUCKET_ENDPONT }}
|
||||
|
||||
- name: Validate changelog gate
|
||||
if: ${{ always() }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if ! awk '
|
||||
/^## \[Unreleased\]/ { in_unreleased=1; next }
|
||||
/^## \[/ && in_unreleased { exit 0 }
|
||||
in_unreleased && /^- / { found=1 }
|
||||
END { exit found ? 0 : 1 }
|
||||
' CHANGELOG.md; then
|
||||
echo "Missing changelog entry under [Unreleased]." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Decorate PR
|
||||
if: ${{ always() }}
|
||||
uses: https://git.hrafn.xyz/aether/vociferate/decorate-pr@v1.1.0
|
||||
with:
|
||||
coverage-percentage: ${{ steps.badge.outputs.total }}
|
||||
badge-url: ${{ steps.badge.outputs.badge-url }}
|
||||
enable-changelog-gate: 'true'
|
||||
changelog-gate-mode: strict
|
||||
enable-changelog-gate: 'false'
|
||||
|
||||
- name: Add coverage summary
|
||||
run: |
|
||||
|
||||
@@ -30,6 +30,7 @@ A `### Breaking` section is used in addition to Keep a Changelog's standard sect
|
||||
- Core filesystem and git error paths now wrap underlying failures with command-specific context across listing, generation, tracking, linking, rc hook execution, and destroy confirmation flows.
|
||||
- Gosec compliance updated for intentional command execution paths: `Open()` now documents both `G702` and `G204` suppression rationale, and fixed-`git` helper invocations include explicit `G204` justifications.
|
||||
- PR validation badge upload now runs only when `coverage.out` exists, preventing downstream badge artefact failures while still allowing PR decoration to run on failed jobs.
|
||||
- PR validation now keys coverage badge upload off the coverage step outcome and performs changelog gate validation in a native workflow step; decorate-pr changelog gating is disabled to bypass the broken internal extractor action.
|
||||
- README badge link target updated to `actions/runs/latest?workflow=...` format per workflow standards.
|
||||
- CI security scanning now uses GitHub Marketplace actions (`securego/gosec` and `golang/govulncheck-action`) instead of manual tool installation, improving reliability and caching.
|
||||
- CI setup compatibility fix: gosec scanner now references the correct public action source (`securego/gosec`), resolving action clone failures in Gitea runners.
|
||||
|
||||
Reference in New Issue
Block a user