Skip to content

Commit 2d7abd0

Browse files
author
John Kjell
authored
Revert demo changes to good state (#17)
Signed-off-by: John Kjell <[email protected]>
1 parent dec8c45 commit 2d7abd0

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/pipeline.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
pre-command: |
4141
curl -sSfL https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64 -o /usr/local/bin/hadolint && \
4242
chmod +x /usr/local/bin/hadolint
43-
command: hadolint --ignore DL3002 -f sarif Dockerfile > hadolint.sarif
43+
command: hadolint -f sarif Dockerfile > hadolint.sarif
4444
artifact-upload-name: hadolint.sarif
4545
artifact-upload-path: hadolint.sarif
4646

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN go build -o bin/software
2020

2121
FROM cgr.dev/chainguard/static@sha256:676e989769aa9a5254fbfe14abb698804674b91c4d574bb33368d87930c5c472
2222

23-
USER root
23+
# USER root
2424

2525
COPY --from=builder /build/bin/software /software
2626

policy.rego

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
policy rego
2-
3-
// lint commandrun cmd validation
1+
# lint commandrun cmd validation
42
package commandrun.cmd
53

4+
import rego.v1
5+
66
deny[msg] {
77
input.cmd != ["/bin/sh", "-c", "hadolint -f sarif Dockerfile > hadolint.sarif"]
88
msg := "unexpected cmd"
99
}
1010

11-
// all github jwt validation
11+
# all github jwt validation
1212
package github.attributes
1313

1414
import rego.v1
1515

16-
deny[msg] if {
16+
deny[msg] {
1717
input.jwt.claims.iss != "https://token.actions.githubusercontent.com"
1818
msg := "unexpected issuer"
1919
}
2020

21-
deny[msg] if {
21+
deny[msg] {
2222
input.projecturl != "https://github.com/testifysec/swf"
2323
msg := "unexpected projecturl"
2424
}
2525

26-
deny[msg] if {
26+
deny[msg] {
2727
not startswith(input.jwt.claims.workflow_ref, "testifysec/swf/.github/workflows/pipeline.yml")
2828
msg := "unexpected workflow_ref"
2929
}
3030

31-
// webhook attestor PR approval
31+
# webhook attestor PR approval
3232
package pr_review
3333

3434
deny[msg] {

0 commit comments

Comments
 (0)