fix(ci): install jq before sop-tier-check script runs
Some checks failed
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 11s
sop-tier-check / tier-check (pull_request) Failing after 9s

Root cause: Gitea Actions runners (ubuntu-latest) do not bundle jq.
The sop-tier-check.sh script requires jq for all JSON API parsing;
without it, the script exits at line 67 with "jq: command not found",
producing "Failing after N seconds" on every PR.

Fix: add apt-get install -y jq step before the script run.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Molecule AI · core-devops 2026-05-11 03:53:00 +00:00
parent 108b9a54d9
commit e036525115

View File

@ -77,6 +77,12 @@ jobs:
# works if we never check out PR HEAD. Same SHA the workflow
# itself was loaded from.
ref: ${{ github.event.pull_request.base.sha }}
- name: Install jq
# Gitea Actions runners (ubuntu-latest label) do not bundle jq.
# The script uses jq extensively for all JSON parsing; install it
# before the script runs. Using -qq for quiet output.
run: apt-get update -qq && apt-get install -y -qq jq
- name: Verify tier label + reviewer team membership
env:
# SOP_TIER_CHECK_TOKEN is the org-level secret for the