Skip to content

feat(crg): add crg-grade and crg-badge justfile recipes #46

feat(crg): add crg-grade and crg-badge justfile recipes

feat(crg): add crg-grade and crg-badge justfile recipes #46

Workflow file for this run

# SPDX-License-Identifier: PMPL-1.0-or-later
# Finishingbot - Release readiness validation
# Part of gitbot-fleet
name: Finishingbot Release Check
permissions:
contents: read
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
release-readiness:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@6d9817901c499d6b02debbb57edb38d33daa680b # stable
with:
toolchain: stable
- name: Cache dependencies
uses: Swatinem/rust-cache@ad397744b0d591a723ab90405b7247fac0e6b8db # v2
- name: Clone finishing-bot
run: |
git clone https://github.com/hyperpolymath/finishing-bot.git /tmp/finishing-bot
cd /tmp/finishing-bot
cargo build --release
- name: Run finishingbot audit
id: finishingbot
continue-on-error: true
run: |
cd ${{ github.workspace }}
/tmp/finishing-bot/target/release/finishingbot audit > finishingbot-results.txt 2>&1
echo $? > finishingbot-exit-code.txt
- name: Display results
if: always()
run: |
if [ -f finishingbot-results.txt ]; then
echo "## Finishingbot Release Readiness Results" >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
cat finishingbot-results.txt >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
exit_code=$(cat finishingbot-exit-code.txt)
if [ "$exit_code" = "0" ]; then
echo "✅ Release readiness checks passed" >> $GITHUB_STEP_SUMMARY
else
echo "❌ Release readiness checks failed (exit code: $exit_code)" >> $GITHUB_STEP_SUMMARY
fi
fi
- name: Upload results
if: always()
uses: actions/upload-artifact@1eb3cb2b3e0f29609092a73eb033bb759a334595 # v4
with:
name: finishingbot-results
path: finishingbot-results.txt
if-no-files-found: ignore
- name: Fail on high-severity findings
if: steps.finishingbot.outcome == 'failure'
run: exit 1