diff --git a/.github/workflows/grc-evidence.yml b/.github/workflows/grc-evidence.yml new file mode 100644 index 0000000..9ac40c7 --- /dev/null +++ b/.github/workflows/grc-evidence.yml @@ -0,0 +1,64 @@ +name: Publish security assessment evidence +on: + push: + branches: [main] + paths: + - '.github/workflows/grc-evidence.yml' + - 'security-insights.yml' + - 'SECURITY.md' + - 'CONTRIBUTING.md' + - 'docs/security/**' + pull_request: + paths: + - '.github/workflows/grc-evidence.yml' + schedule: + - cron: '40 3 * * 1' + workflow_dispatch: + inputs: + dry_run: + description: 'Validate without signing or publishing results' + type: boolean + default: true +permissions: {} +concurrency: + group: grc-evidence-${{ github.repository }}-${{ github.ref }} + cancel-in-progress: false +jobs: + results: + # Only main may publish. Pull requests are unsigned dry runs. + if: >- + github.repository == 'agent-capability/agent-capability-contract' && + (github.ref == 'refs/heads/main' || + (github.event_name == 'pull_request' && + github.event.pull_request.head.repo.full_name == github.repository)) + permissions: + contents: read + id-token: write + # Required by GitHub validation of the optional nested report job. + # upload-sarif stays false; the evaluator and publisher lack this scope. + security-events: write + # GRC checks this exact tag in the signing identity; a SHA pin is rejected. + # Reviewed v1 at 0cbfef2f58ea147021d3657d7b18ed89920f2f6d (2026-11-11). + uses: revanite-io/pvtr-publish-results/.github/workflows/publish.yml@v1 + with: + target: agent-capability-contract/acc@${{ github.event_name == 'pull_request' && 'main-preflight' || github.sha }} + license: CC0-1.0 + upload-sarif: false + dry-run: ${{ github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && inputs.dry_run) }} + secrets: + config: | + targets: + acc: + plugin: openssf/github-repo + version: 0.33.2 + policy: + catalogs: + - osps-baseline-2026-08 + applicability: + - maturity-1 + - maturity-2 + - maturity-3 + vars: + owner: agent-capability + repo: agent-capability-contract + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/docs/security/GRC_EVIDENCE.md b/docs/security/GRC_EVIDENCE.md new file mode 100644 index 0000000..5c86e55 --- /dev/null +++ b/docs/security/GRC_EVIDENCE.md @@ -0,0 +1,54 @@ +# Public security assessment evidence + +The `Publish security assessment evidence` workflow evaluates the public +`agent-capability/agent-capability-contract` repository against OSPS Baseline 2026-08, including +maturity levels 1, 2 and 3. It uses the signed `openssf/github-repo` evaluator +version 0.33.2 and the official GRC reusable publisher. + +The publishing destination is +[agent-capability-contract/acc](https://grc.store/targets/agent-capability-contract/acc). +The first successful publication registers that target. Before that run, an +absent target page is not evidence of a completed assessment. + +## Identity and permissions + +Only this repository's `refs/heads/main` is bound to the corresponding GRC +namespace. The reusable workflow isolates the evaluator (read-only repository +token) from the signing/publishing job (OIDC). No long-lived credential or +organization administrator token is provided. Source code licenses are +unchanged; published assessment output uses CC0-1.0. + +GitHub statically validates permissions of every nested job, even a skipped +optional job. The caller therefore declares `security-events: write` required +by the official report job, but `upload-sarif: false` keeps that job disabled. +The evaluator and signing jobs do not receive this scope. + +GRC currently requires the exact `@v1` workflow reference in its signing +identity. It rejects a commit-pinned caller. The reviewed tag resolved to +`0cbfef2f58ea147021d3657d7b18ed89920f2f6d` on 2026-11-11. +Review upstream changes to this trust root before relying on later runs. + +## Running and interpreting it + +Pull requests modifying the workflow run an unsigned dry run. Manual runs +default to dry-run mode; select `dry_run=false` on main to publish. Evidence +document changes on main and the weekly schedule publish fresh assessments. +There is no production deployment or product release in this workflow. + +The scanner reads GitHub repository state and the current default branch; +a dry run on a pull request does not assess the pull request's proposed source +as if it had already merged. Published coordinates carry the triggering main +commit, and each result also needs its collection time and repository evidence +checked when reviewing a possible concurrent branch update. + +A green publishing job means a result was stored, not that the baseline passed. +Read each requirement's verdict, evidence, coverage and assessed scope. +Failed, Needs Review, Unknown and Not Run outcomes must remain visible. +The restricted token cannot observe every administrative control; supplement +such gaps with independently collected, current evidence. + +Covering all maturity tags is not a claim of meeting Level 3, receiving +certification, or earning a Security Slam badge. The evaluator itself warns +that higher-level checks are less rigorously tested. Manual governance +requirements, including genuine non-author human review, cannot be satisfied +by an automated scan or by changing a status label.