File tree 3 files changed +10
-10
lines changed
3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 40
40
pre-command : |
41
41
curl -sSfL https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64 -o /usr/local/bin/hadolint && \
42
42
chmod +x /usr/local/bin/hadolint
43
- command : hadolint --ignore DL3002 - f sarif Dockerfile > hadolint.sarif
43
+ command : hadolint -f sarif Dockerfile > hadolint.sarif
44
44
artifact-upload-name : hadolint.sarif
45
45
artifact-upload-path : hadolint.sarif
46
46
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ RUN go build -o bin/software
20
20
21
21
FROM cgr.dev/chainguard/static@sha256:676e989769aa9a5254fbfe14abb698804674b91c4d574bb33368d87930c5c472
22
22
23
- USER root
23
+ # USER root
24
24
25
25
COPY --from=builder /build/bin/software /software
26
26
Original file line number Diff line number Diff line change 1
- policy rego
2
-
3
- // lint commandrun cmd validation
1
+ # lint commandrun cmd validation
4
2
package commandrun.cmd
5
3
4
+ import rego.v1
5
+
6
6
deny[msg] {
7
7
input.cmd != [" /bin/sh" , " -c" , " hadolint -f sarif Dockerfile > hadolint.sarif" ]
8
8
msg := " unexpected cmd"
9
9
}
10
10
11
- // all github jwt validation
11
+ # all github jwt validation
12
12
package github.attributes
13
13
14
14
import rego.v1
15
15
16
- deny[msg] if {
16
+ deny[msg] {
17
17
input.jwt.claims.iss != " https://token.actions.githubusercontent.com"
18
18
msg := " unexpected issuer"
19
19
}
20
20
21
- deny[msg] if {
21
+ deny[msg] {
22
22
input.projecturl != " https://github.com/testifysec/swf"
23
23
msg := " unexpected projecturl"
24
24
}
25
25
26
- deny[msg] if {
26
+ deny[msg] {
27
27
not startswith (input.jwt.claims.workflow_ref, " testifysec/swf/.github/workflows/pipeline.yml" )
28
28
msg := " unexpected workflow_ref"
29
29
}
30
30
31
- // webhook attestor PR approval
31
+ # webhook attestor PR approval
32
32
package pr_review
33
33
34
34
deny[msg] {
You can’t perform that action at this time.
0 commit comments