Repository navigation
Update untrusted_checkout_exec to respect actions/checkout new behavior - #450
Merged
Merged
Conversation
Talgarr
marked this pull request as ready for review
August 27, 2026 15:11
Comment on lines
+208
to
+215
| checkout_fork_pr_guard_blocks_step(workflow, step, non_blocked_events) if { | ||
| _checkout_has_pr_safe_default(step.uses) | ||
| not _checkout_allows_unsafe_pr_checkout(step) | ||
| _checkout_targets_fork_pr_head(step) | ||
| _workflow_has_event_in(workflow, {"pull_request_target", "workflow_run"}) | ||
| not _workflow_has_event_in(workflow, non_blocked_events) | ||
| not _workflow_run_from_unsafe_upstream(workflow) | ||
| } |
Contributor
There was a problem hiding this comment.
@Talgarr I feel there are many scenarios that do not have a corresponding test case here. I'm uneasy to merge it as is
fproulx-boostsecurity
approved these changes
Oct 5, 2026
This was referenced Oct 7, 2026
56 of 57 tasks
katriendg
pushed a commit
to PratikWayase/hve-core
that referenced
this pull request
Oct 21, 2026
…ressions (microsoft#3138) # Pull Request ## Description This branch hardens the CI supply chain and moves the repository to a code-scanning baseline where every gated finding is either fixed or carried by a reviewed, count-pinned exception with a filed upstream report. No alert is dismissed, and the SARIF gates accept no exception except an entry in the tracked register. Some tool-native allowlists remain outside that register; Additional Notes lists them. It covers phases P01–P06 of the microsoft#3112 plan. P07–P14 follow, so this pull request does not close microsoft#3112. **Exception-aware gates** * `Test-CodeQLSarifThreshold.ps1` gates SARIF from any tool. With `-Threshold All`, every result fails unless an entry in `security/code-scanning-exceptions.yml` excuses it, matched exactly and case-sensitively. Each entry pins the tool, rule, path, count, kind, upstream issue, owner, and an expiry at most 90 days out. An entry whose rule ran with no matching result is reported stale and fails the gate. * zizmor (`pedantic`, `--no-ignores`), the new workflow validator, tool-version consistency, action pin provenance, and dependency pinning all write SARIF first, then pass through that gate. A missing SARIF fails the job. `--no-ignores` makes the inline `zizmor: ignore` comments gh-aw generates inert. * Dependency-pinning SARIF uses one rule per dependency type (`dependency-not-pinned/<type>`) and declares every scanned type. A finding in one category no longer excuses another in the same file, and a fixed category's exception goes stale. The validator declares the ShellCheck rule family, so ShellCheck exceptions can go stale too. * `npm run validate:local` runs the validator, tool-version, and pinning scanners through the same gate (`lint:*:gated`, via `scripts/security/Invoke-ScannerGate.ps1`), so local and CI results agree. * The weekly exception status reports each alert as `open`, `closed`, or `not-observed`; the last applies when the tool has no analysis on `main`. It suggests removing an exception only for `closed`. * `security/upstream-watches.yml` and `Get-UpstreamWatchStatus.ps1` open an issue when an upstream release, issue, or parser probe changes and a workaround can retire. * The register holds 49 entries, all tracked in microsoft#3137: * 43 `generated-code` entries for gh-aw compiler output. github/gh-aw#65939, github/gh-aw#65940, and github/gh-aw#65941 were fixed upstream on 2026-10-06; only the SC2154 fix has shipped, in v0.91.1 (prerelease). The entries retire when a gh-aw release contains all three fixes. * 1 Poutine `false-positive` (boostsecurityio/poutine#457). This PR removes the `.poutine.yml` skip that had suppressed these 4 results since microsoft#2778, so they are now visible and tracked. * 5 CodeQL `false-positive` entries. CodeQL cannot resolve `uses: $/…` to the local reusable workflow, so it analyzes the callee as externally callable (github/codeql#22755). External `workflow_call` callers would run with their own token, variables, and repository. * CodeQL analyzes the full tree on pull requests (`CODEQL_ACTION_DIFF_INFORMED_QUERIES: 'false'`), so PR and `main` results, and the register's exact counts, agree. **Supply chain and pinning** * `scripts/security/tool-checksums.json` is the single verified version source for downloaded tools, runtimes, and runner images. A hard-coded digest must equal the manifest digest for its own architecture, so swapped amd64 and arm64 digests fail. * Every job uses a dated runner label. Hand-written jobs use the exact Node (`.node-version`) and Python (`.python-version`) versions. Seven gh-aw threat-detection jobs still run `node-version: '24'`; they are the 14 registered github/gh-aw#65939 results. * Dependency pinning gates every rule type, including setup actions, tool runs, container images, shell downloads, and install hints. Every unpinned result is either fixed or one of the 7 registered gh-aw results above. Two things fall outside the gate: the capability probe's `npm view` fetch of the newest `@actions/workflow-parser`, which is deliberate, and the weekly soft-fail run, which reports the gate result without failing. Action pin comments and commits are verified against upstream tags and history. * The agentic workflows pin the Copilot CLI (`engine.version: "1.0.87"`, recorded in the manifest with verified digests). The tool-version check fails a lock that installs the CLI without that version. * `astral-sh/setup-uv` is replaced by a manifest-verified local composite. zizmor is installed from the manifest with its checksum verified. **Workflow validation** * actionlint and `yaml-lint` are replaced by a validator built on GitHub's own workflow parser, with pinned shellcheck, custom checks for gaps the parser leaves, and capability probes that track the parser's coverage. * The validator follows gh-aw helper scripts at the pinned `gh-aw-actions` commit instead of skipping them. **Workflow hardening** * In hand-written workflows, template values reach scripts only through `env:`, and this PR adds no `GITHUB_PATH` or `GITHUB_ENV` writes. The 10 existing hand-written `GITHUB_ENV` writes, all present on `main`, set fixed flags or step results. The gh-aw locks contain 17 generated `GITHUB_ENV` writes (8 on `main`), for `RUNNER_TOOL_CACHE` and `GH_HOST`, which zizmor audits with `--no-ignores`. * Every non-default permission carries a reason comment, unused grants are gone, and release GitHub App tokens are scoped per job. Security Considerations lists the write grants this PR adds or moves. * `workflow_run` handoffs are now explicit `workflow_dispatch` handoffs. Each receiver waits for the producer run, then revalidates it. * The release app key is readable only from the `release-governance` environment, which already exists. The merge-driven release workflows start on push. * The signer verifies the tag rulesets with Metadata read access and `current_user_can_bypass`. * The reusable validation lanes check out the default event commit, which removes the 32 Poutine findings microsoft#3105 added. Every range-capable reusable lane verifies `HEAD` against the expected commit, so the merge-queue contract keeps its exact-commit guarantee; whole-tree scans such as zizmor and tool-version have no range and run on the checked-out commit. * The signer logs a notice when a ruleset's bypass list is hidden from its token; it does not treat a hidden list as empty. `SECURITY.md` and the release docs state that both tag rulesets are active and add a per-release admin audit of their bypass lists. **Agentic workflows** * Recompiled with gh-aw v0.89.21: every generated job runs on `ubuntu-24.04`, `github-script` and the MCP images are pinned, and the agentic maintenance workflow no longer has its unused safe-output replay job (microsoft#3130 tracks the rest). * Each agent firewall blocks the 25 Node ecosystem domains that `runtimes.node` opened, since no agent installs packages. `dependency-pr-review` keeps only `registry.npmjs.org`, as on `main`, for the Dependency Reviewer's package metadata. Effective agent egress drops from 60 to 35 domains (63 to 38 for vex-draft). * The `backlog-groom` trusted-caller check is now a `gh api` and `jq` step with a fixture test for each trust case. * microsoft#3017's sweep hardening is merged on top of the explicit publisher handoff: * Adopted: execution tags, tag recovery, contract-error publication, and its tag and default-branch containment checks. * Hardened: `workflow_run` stays removed, and every `github-script` value comes through `env:`. * The script harness models the handoff, with three added rejection cases. **Other fixes from hosted CI** * The five scan gates install `powershell-yaml` before reading the register. * The pinning scan includes dot-directories on Linux, where it had been skipping `.github/skills` and `.devcontainer`. * Dependency Review has package-scoped license entries for the newly locked Piper environment: `piper-tts` (GPL-3.0, CI-only), plus `numpy` and `protobuf` (see Security Considerations). * The PR and weekly Python matrices skip the `scripts/tools/` locked tool environments, matching local lint. * The npm audit advisories are fixed on `main` by microsoft#3144, which is merged in. **Review guide: high-risk changes, in suggested order** 1. Release secrets and signer: `release-governance` environment key, `extension-provenance-signer.yml` ruleset check. Rationale: release key exposure and tag integrity. 2. Push-triggered release workflows (`release-prerelease.yml`, `release-stable-publish.yml`) and their merged-PR resolvers. Rationale: release now starts on push, not on PR close. 3. Dispatch handoffs that replace `workflow_run`: backlog-groom publisher, demo render, deploy-docs, vex-draft, Scorecard. Rationale: new `actions: write` dispatchers and dispatch receivers. 4. Exception gate, register, and weekly status (`Test-CodeQLSarifThreshold.ps1`, `security/code-scanning-exceptions.yml`, `Get-CodeScanningExceptionStatus.ps1`). Rationale: decides what may merge. 5. Agentic workflow sources and locks: CLI pin, firewall domains, gh-aw v0.89.21 recompile. All changes are owned by @WilliamBerryiii; the backlog-groom changes adopt microsoft#3017 from @rezatnoMsirhC. ## Related Issue(s) Related to microsoft#3112 Related to microsoft#3017 Related to microsoft#3137 Related to microsoft#3130 Related to microsoft#3104 Related to microsoft#2802 Related to microsoft#2822 Related to microsoft#2986 ## Type of Change Select all that apply: **Code & Documentation:** * [x] Bug fix (non-breaking change fixing an issue) * [x] New feature (non-breaking change adding functionality) * [ ] Breaking change (fix or feature causing existing functionality to change) * [x] Documentation update **Infrastructure & Configuration:** * [x] GitHub Actions workflow * [x] Linting configuration (markdown, PowerShell, etc.) * [x] Security configuration * [x] DevContainer configuration * [x] Dependency update **AI Artifacts:** * [ ] Reviewed contribution with `hve-builder` and addressed all actionable findings * [x] Copilot instructions (`.github/instructions/*.instructions.md`) * [ ] Copilot prompt (`.github/prompts/*.prompt.md`) * [x] Copilot agent (`.github/agents/*.agent.md`) * [x] Copilot skill (`.github/skills/*/SKILL.md`) * [ ] Copilot hook (`.github/hooks/*/*.json`) * [ ] Eval spec added/updated for changed AI artifacts (`evals/`) > Note for AI Artifact Contributors: > > * Agents: Research, indexing/referencing other project (using standard VS Code GitHub Copilot/MCP tools), planning, and general implementation agents likely already exist. Review `.github/agents/` before creating new ones. > * Skills: Must include both bash and PowerShell scripts. See [Skills](../docs/contributing/skills.md). > * Model Versions: Contributions **MUST** target models listed in the model catalog (`scripts/linting/model-catalog.json`) whose provider appears in `providerAllowlist` and whose status is `ga` or `preview`. Run `npm run lint:models` to validate references. > * See [Agents Not Accepted](../docs/contributing/custom-agents.md#agents-not-accepted) and [Model Version Requirements](../docs/contributing/ai-artifacts-common.md#model-version-requirements). **Other:** * [x] Script/automation (`.ps1`, `.sh`, `.py`) * [ ] Other (please describe): ## Sample Prompts (for AI Artifact Contributions) **User Request:** "Add a step to this workflow that installs a tool and calls a shared action from this repository." **Execution Flow:** `workflows.instructions.md` now requires the following: * an exact release tag comment on every SHA pin; * the `$/` self-repository syntax for same-repository actions and reusable workflows; * no `GITHUB_PATH` or `GITHUB_ENV` writes; * a dated runner label. The changed skills (`powerpoint`, `customer-card-render`) now point to hash-verifying package managers for `uv` instead of `curl | sh`. The backlog grooming agent also recognizes `automation:upstream-watch:` issues as security work. **Output Artifacts:** A step pinned to a full commit SHA with a `# vX.Y.Z` comment, a `uses: $/.github/actions/<name>` reference, and a tool installed into `/usr/local/bin`. **Success Indicators:** `npm run lint:workflows`, `npm run lint:dependency-pinning`, and `npm run lint:action-pin-provenance` report no new findings. For detailed contribution requirements, see: * Common Standards: [docs/contributing/ai-artifacts-common.md](../docs/contributing/ai-artifacts-common.md) - Shared standards for XML blocks, markdown quality, RFC 2119, validation, and testing * Agents: [docs/contributing/custom-agents.md](../docs/contributing/custom-agents.md) - Agent configurations with tools and behavior patterns * Prompts: [docs/contributing/prompts.md](../docs/contributing/prompts.md) - Workflow-specific guidance with template variables * Instructions: [docs/contributing/instructions.md](../docs/contributing/instructions.md) - Technology-specific standards with glob patterns * Skills: [docs/contributing/skills.md](../docs/contributing/skills.md) - Task execution utilities with cross-platform scripts ## Testing Local results below are at `be02a9e7a`, the pushed head, unless a line says otherwise. * Every gated scanner was re-run on the final tree, with gh-aw v0.89.21 locks, and each passed `Test-CodeQLSarifThreshold.ps1 -Threshold All` with the shipped register. Excused results: * CodeQL 2.27.1 Actions (CI suites): 8; * workflow validator (ShellCheck 0.11.0): 8; * zizmor 1.30.1 (online, `pedantic`, `--no-ignores`): 108; * dependency pinning: 7; * tool version: 7. * Poutine v1.1.4 with the shipped `.poutine.yml`: 5 results. The 4 `backlog-groom.lock.yml` results match the register entry; the 1 `label-sync.yml` note already exists on `main`. Poutine stays advisory. * `npm run test:ps` suites: * `scripts/tests/security/`: 1287 passed, 23 not run (tag-filtered); * `scripts/tests/agentic-workflows/`: 211/211; * packaging contracts: 247/247. * `node --test` for the workflow validator: 23/23. * Each behavior fix has a control run against the unfixed code that fails exactly the new cases: * case-sensitive exception keys: 4 cases; * architecture-bound digests: 2; * hidden ruleset bypass notice: 1. * `npm run lint:*:gated` (tool-version and pinning on Windows; workflows in WSL with ShellCheck 0.11.0): exit 0. * Live `Get-CodeScanningExceptionStatus.ps1` against `main`: 12 `closed`, 37 `not-observed`. Before this change, all 37 would have been told to remove their exception. * `npm run lint:permissions`, `lint:workflow-runner`, `lint:dangerous-workflow`, `lint:public-dependency-feeds`, `validate:skills`, `lint:artifact-portability`, and `lint:tables`: passed. * markdownlint, frontmatter validation, and cspell on every edited document: passed. Three existing "nonterminal" spellings in the workflows README also fail on `main`. * PSScriptAnalyzer, ruff, and ShellCheck on every changed script: no findings. * hve-builder review of the 19 changed skill, agent, and instruction files and the 8 gh-aw sources: Pass after two corrections (a repo-only dev container claim in a distributed skill, and a stale security-model summary). Review follow-up at `fe580d957`: * New `AgentFirewallEgress.Tests.ps1`: 10/10. It fails if dependency-pr-review's hand-written Node block list drifts from gh-aw's compiled set (control verified). * A second `gh aw compile` produces no diff, and `git diff --check origin/main...HEAD` is clean. * `scripts/tests/extension/`: 363 passed, 25 skipped (platform), 0 failed. * `validate:local`, entry by entry: every tracked-file entry passes. `lint:workflows:gated` passed in WSL with ShellCheck 0.11.0. `lint:md` and `lint:py` fail only on the ignored local `.survey-corpus/` folder, once Python environments are synced. `lint:md-links` was not run. Results from earlier heads that this change did not affect: * merge-queue contract: 83/83; * GitHub App token scope: 210/210; * evals: 1301 passed, 1 skipped; * `npm run lint:action-pin-provenance`: 0 findings across 850 pinned references. Hosted CI at `abb8299bf` (`main` merged again, including microsoft#3084): `PR Validation Success` passes and 160 checks pass. Three non-required code-scanning checks stay red until upstream releases ship: * `dependency-pinning-analyzer` and `hve-tool-version-consistency`: the 14 github/gh-aw#65939 alerts. gh-aw v0.91.4 fixes them, but a scratch recompile with it adds two regressions, now reported as github/gh-aw#66423 (261 unparseable pin comments) and github/gh-aw#66424 (MCP gateway image without its digest). This PR stays on v0.89.21 until a clean release exists. * `poutine`: the 4 tracked `backlog-groom` findings. boostsecurityio/poutine#450 already fixes them on Poutine `main` (0 findings, verified). A release was requested on boostsecurityio/poutine#457. ## Checklist ### Required Checks * [x] Documentation is updated (if applicable) * [ ] Files follow existing naming conventions * [ ] Changes are backwards compatible (if applicable) * [x] Tests added for new functionality (if applicable) ### AI Artifact Contributions <!-- If contributing an agent, prompt, instruction, or skill, complete these checks --> * [ ] Used `hve-builder` review mode to review contribution * [ ] Addressed all actionable findings from the `hve-builder` review * [ ] Verified contribution follows common standards and type-specific requirements ### Required Local Checks The following local-safe validation commands must pass before merging: * [ ] Local validation aggregate: `npm run validate:local` * [ ] Documentation validation (if docs changed): `npm run validate:docs` * [ ] Spell checking: `npm run spell-check` * [ ] Link validation: `npm run lint:md-links` ## Security Considerations <!--⚠️ WARNING: Do not commit sensitive information such as API keys, passwords, or personal data --> * [ ] This PR does not contain any sensitive or NDA information * [ ] Any new dependencies have been reviewed for security issues * [x] Security-related scripts follow the principle of least privilege New dependencies and their license posture: * Workflow validator: `@actions/workflow-parser` 0.3.61 and `yaml` 2.9.1, pinned exactly in its own lockfile with a canonical `.npmrc`, and covered by Dependabot. * `scripts/tools/piper` (uv-locked, CI-only narration): `piper-tts` is GPL-3.0-or-later and embeds espeak-ng (GPL-3.0). Its `numpy` wheel bundles OpenBLAS (BSD-3-Clause), LAPACK (BSD-3-Clause-Open-MPI), `libgfortran` (GPL-3.0-or-later WITH GCC-exception-3.1), and `libquadmath` (LGPL-2.1-or-later). The package metadata does not report the last two. Nothing is redistributed. A contract test keeps `piper-tts` confined to that project, because the Dependency Review allowlist is package-keyed. **Organizational approval of these license exceptions is required before merge.** * `scripts/tools/pip-audit` (uv-locked with hashes): the pinned `pip-audit` 2.10.0 that `pip-audit.yml` runs. * Downloaded tools, including the Copilot CLI, are verified against `scripts/security/tool-checksums.json`. Permission and trust-boundary changes (`npm run lint:permissions` passes; every grant has a reason comment): * New `actions: write` dispatcher jobs replace `workflow_run`: sweep continuation and publisher start (backlog-groom orchestrator), deploy-docs start (publisher and demo render), VEX Draft start (`vex-detect.yml`), and Scorecard start (`release-vsix-publish.yml`). * New `workflow_dispatch` receivers: `backlog-groom-publisher.yml` (input `sweep-run-id`, revalidated, default branch only) and `zizmor-scan.yml`. * Other added write lines re-scope grants that already existed, from the workflow level to the job level or into one job. * gh-aw activation jobs in 7 locks hold `issues: write` for gh-aw's blocked-version report. This grant also exists on `main`. ## Additional Notes > [!IMPORTANT] > **Merge gate: upstream acknowledgment.** This PR registers code-scanning findings caused by two upstream tools. Do not merge until both reports below are resolved or acknowledged by a maintainer, so that the exceptions track confirmed upstream defects. Status as of 2026-10-06: > > * [ ] github/codeql#22755: CodeQL does not resolve `uses: $/…` references (5 `false-positive` entries; 8 results in `backlog-groom.lock.yml` and `extension-marketplace-publish.yml`). **Acknowledged:** a CodeQL maintainer accepted the offer to open the fix PR with library tests and a change note. > * [ ] github/gh-aw#65939: the threat-detection `Setup Node.js` step ignores `runtimes.node.version` (14 `generated-code` entries across 7 lock files, and the two red code-scanning checks). **Fixed upstream** in github/gh-aw#66040 and released in v0.91.4 (prerelease). That release adds two regressions, github/gh-aw#66423 and github/gh-aw#66424, so this PR stays on v0.89.21. github/gh-aw#65940 (zizmor) and github/gh-aw#65941 (SC2154) are also fixed; only the SC2154 fix has shipped, in v0.91.1 (prerelease). > > When a gh-aw release contains all three fixes, recompile with it and remove the retired register entries in the same change. When the CodeQL fix ships in a bundle, upgrade and remove the 5 CodeQL entries. * **Merge prerequisites:** * Organizational approval of the `piper-tts` (GPL-3.0) and `numpy` runtime license exceptions (see Security Considerations). * Met: the `release-governance` environment holds the rotated release app key, with ref rules and no admin bypass. Both tag rulesets (`release-tags-creation-by-release-app`, `release-tags-immutable`) and the `release-branches` ruleset are active. After the first release run succeeds through the environment, delete the repository-level `RELEASE_APP_PRIVATE_KEY` and revoke the old key. * Admin check: confirm the release app has the Administration permission. Both the current and the new signer pin request `permission-administration: read`. * **Remaining tool-native allowlists, outside the SARIF register:** * 5 pre-existing `.poutine.yml` skips (Poutine is advisory); * the `audit-ci.json` advisory allowlist and per-project `pip-audit-known-vulnerabilities.txt` files, each entry with a recorded reason; * the Dependency Review license allowlist; * 17 generated `# shellcheck disable` directives in gh-aw locks, which ShellCheck honors. The gh-aw-generated `zizmor: ignore` comments no longer suppress anything (`--no-ignores`). * **Behavior changes for contributors and maintainers:** * `npm run lint:yaml` is replaced by `npm run lint:workflows`, and actionlint is removed. `validate:local` now runs the `lint:workflows:gated`, `lint:tool-version-consistency:gated`, and `lint:dependency-pinning:gated` variants, and `lint:workflows:gated` needs ShellCheck 0.11.0 on `PATH`. * The release workflows start on push to their branches instead of on a closed pull request. * The reusable lanes no longer pass `ref` to `actions/checkout`. * The pinning scan always runs the exception gate, and `soft-fail` reports its result without failing. It outputs `failing-count`, `excepted-count`, and `exception-error-count`. The `threshold` input only reports compliance. * The 7 pinning alerts move to the rule `dependency-not-pinned/setup-action-versions`, so GitHub closes the old alerts and opens new ones under the new rule ID. * **Follow-ups:** * Re-pin the extension provenance signer to a tagged `main` commit that includes this branch, and update its digest in `SECURITY.md`, `docs/security/sbom-verification.md`, `extension/PACKAGING.md`, and the contract tests. * All 49 exceptions expire 2026-12-31 under one owner. Renew each through review before then, or retire it with the upstream fixes above. * Deferred review findings and owners are listed in microsoft#3137. * The `label-sync.yml` Poutine note (`EndBug/label-sync`, unverified creator) predates this PR. * Narration voice licence lineage (`en_US-joe-medium`) belongs to the demo-material owner. * Plan phases P07–P14 continue on this work; microsoft#2986, which P13 waited for, is merged in. --------- Co-authored-by: Copilot <[email protected]> Co-authored-by: William Berry <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reimplement this #442
Summary
Update
untrusted_checkout_execto account for the new fork pull request protection in supportedactions/checkoutreleases.Poutine now suppresses findings when
actions/checkoutitself blocks untrusted fork code from being checked out. This reduces false positives without suppressing workflows that opt out of the protection or remain exposed through other events.Background
GitHub introduced safer defaults for
actions/checkoutonpull_request_targetand pull-request-originatedworkflow_runevents:https://github.blog/changelog/2026-06-18-safer-pull_request_target-defaults-for-github-actions-checkout/
Supported releases now refuse to check out fork pull request code unless
allow-unsafe-pr-checkout: trueis explicitly configured.Behavior
A finding is suppressed when all of the following apply:
allow-unsafe-pr-checkoutis not enabled or dynamically configured.workflow_runtrigger only references pull-request workflows.Findings remain for:
actions/checkout@v1allow-unsafe-pr-checkout: trueallow-unsafe-pr-checkoutvaluesworkflow_runtriggers with non-PR upstream workflowsExact commit references are classified using a frozen set derived from the official
actions/checkoutcommit graph. The dataset records its provenance, guard-introduction commits, entry count, and checksum.