19
19
pull_request : ${{ github.event_name == 'pull_request' }}
20
20
step : fmt
21
21
attestations : " git github environment"
22
- archivista-server : " https://judge-api .aws-sandbox-staging.testifysec.dev"
22
+ archivista-server : " https://judge.aws-sandbox-staging.testifysec.dev"
23
23
command : go fmt ./...
24
24
25
25
vet :
28
28
pull_request : ${{ github.event_name == 'pull_request' }}
29
29
step : vet
30
30
attestations : " git github environment"
31
- archivista-server : " https://judge-api .aws-sandbox-staging.testifysec.dev"
31
+ archivista-server : " https://judge.aws-sandbox-staging.testifysec.dev"
32
32
command : go vet ./...
33
33
34
34
# --ignore DL3002
39
39
step : lint
40
40
pre-command-attestations : " git github environment"
41
41
attestations : " git github environment"
42
- archivista-server : " https://judge-api .aws-sandbox-staging.testifysec.dev"
42
+ archivista-server : " https://judge.aws-sandbox-staging.testifysec.dev"
43
43
pre-command : |
44
44
curl -sSfL https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64 -o /usr/local/bin/hadolint && \
45
45
chmod +x /usr/local/bin/hadolint
54
54
pull_request : ${{ github.event_name == 'pull_request' }}
55
55
step : unit-test
56
56
attestations : " git github environment"
57
- archivista-server : " https://judge-api .aws-sandbox-staging.testifysec.dev"
57
+ archivista-server : " https://judge.aws-sandbox-staging.testifysec.dev"
58
58
command : go test ./... -coverprofile cover.out
59
59
artifact-upload-name : cover.out
60
60
artifact-upload-path : cover.out
67
67
step : sast
68
68
pre-command-attestations : " git github environment"
69
69
attestations : " git github environment sarif"
70
- archivista-server : " https://judge-api .aws-sandbox-staging.testifysec.dev"
70
+ archivista-server : " https://judge.aws-sandbox-staging.testifysec.dev"
71
71
pre-command : python3 -m pip install semgrep==1.45.0
72
72
command : semgrep scan --config auto ./ --sarif -o semgrep.sarif
73
73
artifact-upload-name : semgrep.sarif
@@ -121,7 +121,7 @@ jobs:
121
121
version : 0.6.0
122
122
step : build-image
123
123
attestations : " git github environment slsa"
124
- archivista-server : " https://judge-api .aws-sandbox-staging.testifysec.dev"
124
+ archivista-server : " https://judge.aws-sandbox-staging.testifysec.dev"
125
125
command : |
126
126
/bin/sh -c "docker buildx build --platform linux/amd64,linux/arm64 -t ${{ steps.meta.outputs.tags }} --push ."
127
127
outputs :
@@ -134,7 +134,7 @@ jobs:
134
134
pull_request : ${{ github.event_name == 'pull_request' }}
135
135
step : save-image
136
136
attestations : " git github environment slsa oci"
137
- archivista-server : " https://judge-api .aws-sandbox-staging.testifysec.dev"
137
+ archivista-server : " https://judge.aws-sandbox-staging.testifysec.dev"
138
138
command : |
139
139
docker pull ${{ needs.build-image.outputs.tags }} && docker save ${{ needs.build-image.outputs.tags }} -o image.tar
140
140
artifact-upload-name : image.tar
@@ -148,7 +148,7 @@ jobs:
148
148
step : generate-sbom
149
149
pre-command-attestations : " git github environment"
150
150
attestations : " git github environment sbom"
151
- archivista-server : " https://judge-api .aws-sandbox-staging.testifysec.dev"
151
+ archivista-server : " https://judge.aws-sandbox-staging.testifysec.dev"
152
152
artifact-download : image.tar
153
153
pre-command : |
154
154
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
@@ -165,7 +165,7 @@ jobs:
165
165
step : secret-scan
166
166
pre-command-attestations : " git github environment"
167
167
attestations : " git github environment"
168
- archivista-server : " https://judge-api .aws-sandbox-staging.testifysec.dev"
168
+ archivista-server : " https://judge.aws-sandbox-staging.testifysec.dev"
169
169
artifact-download : image.tar
170
170
pre-command : |
171
171
curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh | sh -s -- -b /usr/local/bin
@@ -174,20 +174,21 @@ jobs:
174
174
artifact-upload-name : trufflehog.json
175
175
artifact-upload-path : trufflehog.json
176
176
177
- verify :
178
- needs : [ generate-sbom, secret-scan]
179
-
180
- if : ${{ github.event_name == 'push' }}
181
- uses : testifysec/witness-run-action/.github/workflows/witness.yml@reusable-workflow
182
- with :
183
- pull_request : ${{ github.event_name == 'pull_request' }}
184
- step : verify
185
- pre-command-attestations : " git github environment"
186
- attestations : " git github environment"
187
- archivista-server : " https://judge-api.aws-sandbox-staging.testifysec.dev"
188
- artifact-download : image.tar
189
- pre-command : |
190
- curl -sSfL https://github.com/in-toto/witness/releases/download/v0.6.0/witness_0.6.0_linux_amd64.tar.gz -o witness.tar.gz && \
191
- tar -xzvf witness.tar.gz -C /usr/local/bin/ && rm ./witness.tar.gz
192
- command : |
193
- witness verify -p policy-signed.json -k swfpublic.pem -f /tmp/image.tar --enable-archivista --archivista-server https://judge-api.aws-sandbox-staging.testifysec.dev -l debug
177
+ # NOTE: We can't verify from judge anymore as the route is restricted
178
+ # verify:
179
+ # needs: [ generate-sbom, secret-scan]
180
+ #
181
+ # if: ${{ github.event_name == 'push' }}
182
+ # uses: testifysec/witness-run-action/.github/workflows/witness.yml@reusable-workflow
183
+ # with:
184
+ # pull_request: ${{ github.event_name == 'pull_request' }}
185
+ # step: verify
186
+ # pre-command-attestations: "git github environment"
187
+ # attestations: "git github environment"
188
+ # archivista-server: "https://judge.aws-sandbox-staging.testifysec.dev"
189
+ # artifact-download: image.tar
190
+ # pre-command: |
191
+ # curl -sSfL https://github.com/in-toto/witness/releases/download/v0.6.0/witness_0.6.0_linux_amd64.tar.gz -o witness.tar.gz && \
192
+ # tar -xzvf witness.tar.gz -C /usr/local/bin/ && rm ./witness.tar.gz
193
+ # command: |
194
+ # witness verify -p policy-signed.json -k swfpublic.pem -f /tmp/image.tar --enable-archivista --archivista-server https://judge.aws-sandbox-staging.testifysec.dev -l debug
0 commit comments