Skip to content

Commit 07b76ee

Browse files
committed
fix policy files
1 parent f89cab8 commit 07b76ee

7 files changed

Lines changed: 26 additions & 22 deletions

File tree

.github/workflows/pull_request.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ jobs:
113113
with:
114114
args: >
115115
validate image
116-
--policy "policy/policy.yaml"
117-
--rule-data "policy/rule_data_pull_request.yaml"
116+
--policy "policy/policy_pull_request.yaml"
118117
--image "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ needs.build-and-attest.outputs.digest }}"
119118
--certificate-identity-regexp "^https://github\.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/"
120119
--certificate-oidc-issuer "https://token.actions.githubusercontent.com"

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ jobs:
114114
with:
115115
args: >
116116
validate image
117-
--policy "policy/policy.yaml"
118-
--rule-data "policy/rule_data_release.yaml"
117+
--policy "policy/policy_release.yaml"
119118
--image "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ needs.build-and-attest.outputs.digest }}"
120119
--certificate-identity-regexp "^https://github\.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/"
121120
--certificate-oidc-issuer "https://token.actions.githubusercontent.com"

policy/policy.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

policy/policy_pull_request.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
sources:
2+
- policy:
3+
- ./policy/rules
4+
- ./policy/lib
5+
6+
ruleData:
7+
disallowed_packages:
8+
- purl: "pkg:golang/github.com/rs/zerolog"
9+
format: "semver"
10+
max: "1.31.0"
11+
allowed_builder_ids:
12+
- https://github.com/st3penta/fosdem-2026-build-sample/.github/workflows/pr-build.yml@refs/pull/

policy/policy_release.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
sources:
2+
- policy:
3+
- ./policy/rules
4+
- ./policy/lib
5+
6+
ruleData:
7+
disallowed_packages:
8+
- purl: "pkg:golang/github.com/rs/zerolog"
9+
format: "semver"
10+
max: "1.31.0"
11+
allowed_builder_ids:
12+
- https://github.com/st3penta/fosdem-2026-build-sample/.github/workflows/build-attest.yml@refs/heads/main

policy/rule_data_pull_request.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

policy/rule_data_release.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)