Skip to content

Commit 4d55d17

Browse files
[skip-release] Restore required PR status gate
1 parent f9190dd commit 4d55d17

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/lint-test-build-push.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ jobs:
9696
severity: HIGH,CRITICAL
9797
vuln-type: os,library
9898

99+
merge:
100+
if: always() && github.event_name == 'pull_request'
101+
needs:
102+
- test
103+
- image-check
104+
uses: libops/.github/.github/workflows/pr-status.yaml@578137212ead4ab4059e95df17fa30e9b7ac4aed
105+
permissions: {}
106+
with:
107+
needs-json: ${{ toJSON(needs) }}
108+
99109
publish:
100110
if: github.event_name != 'pull_request'
101111
needs: test

ci/publication_contract_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ func TestPublicationUsesSharedGHCRAndGARContract(t *testing.T) {
3232
workflow := readFile(t, ".github", "workflows", "lint-test-build-push.yml")
3333
for _, required := range []string{
3434
"libops/.github/.github/workflows/build-push.yaml@" + sharedWorkflowSHA,
35+
"libops/.github/.github/workflows/pr-status.yaml@" + sharedWorkflowSHA,
3536
"image-check:",
3637
"if: github.event_name == 'pull_request'",
38+
"if: always() && github.event_name == 'pull_request'",
39+
"needs-json: ${{ toJSON(needs) }}",
40+
"permissions: {}",
3741
"ubuntu-24.04-arm",
3842
"aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25",
3943
"severity: HIGH,CRITICAL",

0 commit comments

Comments
 (0)