cleanup: delete unused CoreRunnerError #33
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: custodian-audit | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| audit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install Custodian | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install "custodian[tools] @ git+https://github.com/ProtocolWarden/Custodian.git@main" | |
| pip install ruff vulture ty | |
| - name: Install repo (best-effort, for adapter passes) | |
| run: | | |
| if [ -f pyproject.toml ]; then | |
| pip install -e . || true | |
| fi | |
| - name: Materialize boundary artifact file | |
| # Decode the boundary disclosure artifact from the base64 CONTENT secret | |
| # REPOGRAPH_BOUNDARY_ARTIFACT_B64. The older *_FILE secret held a filesystem | |
| # path that cannot resolve on a CI runner (the artifact lives in the private | |
| # repo on the dev machine), so this step used to fail and the audit never ran. | |
| # Graceful: if the secret is absent, skip — custodian's B2 reports the | |
| # missing-artifact requirement rather than this step hard-failing. | |
| env: | |
| REPOGRAPH_BOUNDARY_ARTIFACT_B64: ${{ secrets.REPOGRAPH_BOUNDARY_ARTIFACT_B64 }} | |
| run: | | |
| if [ -z "${REPOGRAPH_BOUNDARY_ARTIFACT_B64:-}" ]; then | |
| echo "REPOGRAPH_BOUNDARY_ARTIFACT_B64 not set — skipping (B2 flags if required)." | |
| exit 0 | |
| fi | |
| dest="$(mktemp "${RUNNER_TEMP:-/tmp}/repograph-boundary-XXXXXX.json")" | |
| printf '%s' "$REPOGRAPH_BOUNDARY_ARTIFACT_B64" | base64 -d > "$dest" | |
| python - "$dest" <<'PY' | |
| import json | |
| import sys | |
| from pathlib import Path | |
| data = json.loads(Path(sys.argv[1]).read_text(encoding="utf-8")) | |
| print(f"boundary_provenance={data.get('source_graph_id')}@{data.get('source_ref_or_commit')}") | |
| PY | |
| echo "REPOGRAPH_BOUNDARY_ARTIFACT_FILE=$dest" >> "$GITHUB_ENV" | |
| - name: Run Custodian audit | |
| run: | | |
| # .custodian/config.yaml flags an unset core.hooksPath (W2); wire it | |
| # like a developer checkout would so the audit reflects real findings. | |
| git config core.hooksPath .hooks | |
| custodian-multi --repos . --fail-on-findings --no-color |