beads allows every action today (allowed_actions: all, no SHA pinning), so a fork PR's workflow can call any action, including Blacksmith's sticky-disk action that commits state later trusted runs restore. .github/allowed-actions.json is the exact body of the selected-actions setting: GitHub-owned actions plus gascity's list plus the third-party actions beads uses. That includes DeterminateSystems/nix-installer-action, which determinate-nix-action calls, and peter-evans/create-pull-request. Every uses: under .github is already pinned to a full commit SHA. The new ci_actions_policy_test.go keeps it that way: each reference is local or owner/repo[/path]@<40-hex>, and allowed by the file, so the repository setting can switch to allowed_actions=selected with sha_pinning_required=true without breaking a workflow. Negative controls: an @v6 tag ref and an unlisted owner/repo each fail the test. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
17 lines
492 B
JSON
17 lines
492 B
JSON
{
|
|
"github_owned_allowed": true,
|
|
"verified_allowed": false,
|
|
"patterns_allowed": [
|
|
"DeterminateSystems/determinate-nix-action@*",
|
|
"DeterminateSystems/nix-installer-action@*",
|
|
"anchore/sbom-action@*",
|
|
"codecov/codecov-action@*",
|
|
"cygwin/cygwin-install-action@*",
|
|
"docker/setup-buildx-action@*",
|
|
"dorny/paths-filter@*",
|
|
"goreleaser/goreleaser-action@*",
|
|
"msys2/setup-msys2@*",
|
|
"ossf/scorecard-action@*",
|
|
"peter-evans/create-pull-request@*"
|
|
]
|
|
}
|