Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitea/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ jobs:
- name: Checkout
uses: https://192.168.178.233/actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Validate CI workflow policy
run: bash scripts/check-ci-workflow-policy.sh

- name: Validate recommendation contract gate
run: bash scripts/check-recommendation-contract.sh

- name: Lint GitHub Actions workflows
uses: rhysd/actionlint@914e7df21a07ef503a81201c76d2b11c789d3fca # v1.7.12

Expand Down
1 change: 1 addition & 0 deletions .github/scripts/fop-local-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ post_commit_status "pending" "fop local ${profile} running"

run_direct "working tree whitespace" "git diff --check"
run_direct "ui polish contract" "scripts/tests/test-ui-polish-contract.sh"
run_direct "recommendation contract gate" "bash scripts/check-recommendation-contract.sh"
run_direct "legal-readiness wording contract" "scripts/tests/test-legal-readiness-wording.sh"
run_direct "legal/module OpenAPI contract" "scripts/tests/test-legal-openapi-contract.sh"

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
- name: Validate CI workflow policy
run: bash scripts/check-ci-workflow-policy.sh

- name: Validate recommendation contract gate
run: bash scripts/check-recommendation-contract.sh

- name: Validate Fly config
run: python3 -c "import pathlib, tomllib; tomllib.loads(pathlib.Path('fly.toml').read_text())"

Expand Down Expand Up @@ -151,7 +154,7 @@
# variable references substituted by gh -F flags, not shell vars.
status="$(
gh api graphql \
-f query='query($oid:GitObjectID!,$owner:String!,$name:String!){repository(owner:$owner,name:$name){object(oid:$oid){...on Commit{statusCheckRollup{contexts(first:50){nodes{...on StatusContext{context state}}}}}}}}' \

Check warning on line 157 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / Workflow & manifest hygiene

157:181 [line-length] line too long (235 > 180 characters)
-F oid="${SHA}" -F owner="$(echo "${REPO}" | cut -d/ -f1)" -F name="$(echo "${REPO}" | cut -d/ -f2)" \
--jq '.data.repository.object.statusCheckRollup.contexts.nodes[]? | select(.context == "'"${CONTEXT}"'") | .state' 2>/dev/null \
| head -n 1 \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ jobs:
# Audit-mode: surface findings as informational; do NOT fail the gate yet.
# Promote findings to errors once the workflow inventory has been triaged.
continue-on-error: true
env:
ZIZMOR_VERSION: "1.24.1"
permissions:
contents: read # checkout source for the SAST scan
security-events: write # upload Zizmor SARIF results to GitHub Security tab
env:
ZIZMOR_VERSION: "1.24.1"
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ script-tests:
bash scripts/check-ci-workflow-policy.sh
bash scripts/tests/test-drift-scripts.sh
bash scripts/tests/test-ui-polish-contract.sh
bash scripts/check-recommendation-contract.sh
bash scripts/tests/test-devcontainer-contract.sh
bash scripts/tests/test-fop-local-ci-ergonomics.sh
bash scripts/tests/test-fop-local-ci-failure-trap.sh
Expand Down
Loading
Loading