File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ RUN go build -o bin/software
2020
2121FROM cgr.dev/chainguard/static@sha256:676e989769aa9a5254fbfe14abb698804674b91c4d574bb33368d87930c5c472
2222
23- USER root
23+ # USER root
2424
2525COPY --from=builder /build/bin/software /software
2626
Original file line number Diff line number Diff line change 1- policy rego
2-
3- // lint commandrun cmd validation
1+ # lint commandrun cmd validation
42package commandrun.cmd
53
4+ import rego.v1
5+
66deny[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
1212package github.attributes
1313
1414import 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
3232package pr_review
3333
3434deny[msg] {
You can’t perform that action at this time.
0 commit comments