Skip to content

Commit ff6e58b

Browse files
hyperpolymathclaude
andcommitted
fix(ci): split scorecard job to satisfy OpenSSF publish-results job-shape rule
The scorecard job has been failing on every push to main since at least 2026-07-01 with "scorecard job must only have steps with `uses`" — the OpenSSF scorecard-action's publish_results endpoint rejects any job that mixes non-`uses` steps in with the scorecard-action step. Move the min-score shell check into a separate downstream job that consumes the results via artifact upload/download instead of running in-job. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 412a703 commit ff6e58b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/scorecard-enforcer.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ jobs:
3030
results_format: json
3131
publish_results: true
3232

33+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
34+
with:
35+
name: scorecard-results
36+
path: results.json
37+
retention-days: 5
38+
39+
check-score:
40+
needs: scorecard
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
44+
with:
45+
name: scorecard-results
46+
3347
- name: Check minimum score
3448
run: |
3549
# Parse score from results.json

0 commit comments

Comments
 (0)