Skip to content

Commit fae625f

Browse files
author
Cole Kennedy
committedJan 29, 2025·
update policy and workflow
1 parent 425fe29 commit fae625f

File tree

5 files changed

+58
-12
lines changed

5 files changed

+58
-12
lines changed
 

‎.github/workflows/pipeline.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
pull_request: ${{ github.event_name == 'pull_request' }}
2020
step: fmt
2121
attestations: "git github environment"
22-
archivista-server: "https://judge-api.aws-sandbox-staging.testifysec.dev"
22+
archivista-server: "https://archivista.testifysec.io"
2323
command: go fmt ./...
2424

2525
vet:
@@ -28,7 +28,7 @@ jobs:
2828
pull_request: ${{ github.event_name == 'pull_request' }}
2929
step: vet
3030
attestations: "git github environment"
31-
archivista-server: "https://judge-api.aws-sandbox-staging.testifysec.dev"
31+
archivista-server: "https://archivista.testifysec.io"
3232
command: go vet ./...
3333

3434
# --ignore DL3002
@@ -39,7 +39,7 @@ jobs:
3939
step: lint
4040
pre-command-attestations: "git github environment"
4141
attestations: "git github environment"
42-
archivista-server: "https://judge-api.aws-sandbox-staging.testifysec.dev"
42+
archivista-server: "https://archivista.testifysec.io"
4343
pre-command: |
4444
curl -sSfL https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64 -o /usr/local/bin/hadolint && \
4545
chmod +x /usr/local/bin/hadolint
@@ -54,7 +54,7 @@ jobs:
5454
pull_request: ${{ github.event_name == 'pull_request' }}
5555
step: unit-test
5656
attestations: "git github environment"
57-
archivista-server: "https://judge-api.aws-sandbox-staging.testifysec.dev"
57+
archivista-server: "https://archivista.testifysec.io"
5858
command: go test ./... -coverprofile cover.out
5959
artifact-upload-name: cover.out
6060
artifact-upload-path: cover.out
@@ -67,7 +67,7 @@ jobs:
6767
step: sast
6868
pre-command-attestations: "git github environment"
6969
attestations: "git github environment"
70-
archivista-server: "https://judge-api.aws-sandbox-staging.testifysec.dev"
70+
archivista-server: "https://archivista.testifysec.io"
7171
pre-command: python3 -m pip install semgrep==1.45.0
7272
command: semgrep scan --config auto ./ --sarif -o semgrep.sarif
7373
artifact-upload-name: semgrep.sarif
@@ -121,7 +121,7 @@ jobs:
121121
version: 0.6.0
122122
step: build-image
123123
attestations: "git github environment slsa"
124-
archivista-server: "https://judge-api.aws-sandbox-staging.testifysec.dev"
124+
archivista-server: "https://archivista.testifysec.io"
125125
command: |
126126
/bin/sh -c "docker buildx build --platform linux/amd64,linux/arm64 -t ${{ steps.meta.outputs.tags }} --push ."
127127
outputs:
@@ -134,7 +134,7 @@ jobs:
134134
pull_request: ${{ github.event_name == 'pull_request' }}
135135
step: save-image
136136
attestations: "git github environment slsa oci"
137-
archivista-server: "https://judge-api.aws-sandbox-staging.testifysec.dev"
137+
archivista-server: "https://archivista.testifysec.io"
138138
command: |
139139
docker pull ${{ needs.build-image.outputs.tags }} && docker save ${{ needs.build-image.outputs.tags }} -o image.tar
140140
artifact-upload-name: image.tar
@@ -148,7 +148,7 @@ jobs:
148148
step: generate-sbom
149149
pre-command-attestations: "git github environment"
150150
attestations: "git github environment sbom"
151-
archivista-server: "https://judge-api.aws-sandbox-staging.testifysec.dev"
151+
archivista-server: "https://archivista.testifysec.io"
152152
artifact-download: image.tar
153153
pre-command: |
154154
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
@@ -165,7 +165,7 @@ jobs:
165165
step: secret-scan
166166
pre-command-attestations: "git github environment"
167167
attestations: "git github environment"
168-
archivista-server: "https://judge-api.aws-sandbox-staging.testifysec.dev"
168+
archivista-server: "https://archivista.testifysec.io"
169169
artifact-download: image.tar
170170
pre-command: |
171171
curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh | sh -s -- -b /usr/local/bin
@@ -184,10 +184,10 @@ jobs:
184184
step: verify
185185
pre-command-attestations: "git github environment"
186186
attestations: "git github environment"
187-
archivista-server: "https://judge-api.aws-sandbox-staging.testifysec.dev"
187+
archivista-server: "https://archivista.testifysec.io"
188188
artifact-download: image.tar
189189
pre-command: |
190190
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 && \
191191
tar -xzvf witness.tar.gz -C /usr/local/bin/ && rm ./witness.tar.gz
192192
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
193+
witness verify -p policy-signed.json -k swfpublic.pem -f /tmp/image.tar --enable-archivista --archivista-server https://archivista.testifysec.io -l debug

‎policy-signed.json

+1-1
Large diffs are not rendered by default.

‎policy.json

+9
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,15 @@
387387
},
388388
{
389389
"type": "https://witness.dev/attestations/product/v0.1"
390+
},
391+
{
392+
"type": "https://witness.dev/attestations/sbom/v0.1",
393+
"aipolicies": [
394+
{
395+
"name": "Check SBOM for GPL-2.0",
396+
"prompt": "Check SBOM for GPL-2.0 and fail if found"
397+
}
398+
]
390399
}
391400
],
392401
"functionaries": [

‎private_key.pem

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
-----BEGIN PRIVATE KEY-----
2+
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC1D0+7NtepGGe3
3+
0Irj/jjSOc4p4WSyL6MUTV0FFl0RQ55CWhPqAK7S55z5wajiSWSghY7pU5vqrh43
4+
pw68oomXUmFcm///oXurgfRQWKXWcjm9fWInCxWJjZwe/dAKpPmbVmJcVzqPUV0D
5+
bG1kNzzkm+nj6lpm648StZbjkPE9qahdwYY8ChRF96lQWxLjQHj+du7XN930StZj
6+
d2XCu9OcSkrXBkA4cnqYdp6NlshqhaalDiGoNVws2YKgyOurayhoeKms8ZCD3UKt
7+
BGgm8hxLv7z2qlRUTuE4IVxxwMex2lX+5XcIk78IhWUCQXu8XR2/8pQIx4c6jIQj
8+
NbnUKL6LAgMBAAECggEAVPeZgA7Nh/IHAlDgTPwJ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bVPTniOSNAwcZUCgYEA7aLtQ2+VfFG2v11opWe0
25+
OBlRdNyFVX5VPfrBl4RwtLzCq1OShbBr8F8V1IGWAvhHpx2wOJCYKXI/Iwji9nOu
26+
bzDTV/5qcFs43KTsTKGnghuoLSxVX+iigCuiogPUP3Q7U5h5me3ZJuROMJQjKZnN
27+
TxDqHZRaSlsPA0VsfHqd4kY=
28+
-----END PRIVATE KEY-----

‎public_key.pem

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-----BEGIN PUBLIC KEY-----
2+
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtQ9PuzbXqRhnt9CK4/44
3+
0jnOKeFksi+jFE1dBRZdEUOeQloT6gCu0uec+cGo4klkoIWO6VOb6q4eN6cOvKKJ
4+
l1JhXJv//6F7q4H0UFil1nI5vX1iJwsViY2cHv3QCqT5m1ZiXFc6j1FdA2xtZDc8
5+
5Jvp4+paZuuPErWW45DxPamoXcGGPAoURfepUFsS40B4/nbu1zfd9ErWY3dlwrvT
6+
nEpK1wZAOHJ6mHaejZbIaoWmpQ4hqDVcLNmCoMjrq2soaHiprPGQg91CrQRoJvIc
7+
S7+89qpUVE7hOCFcccDHsdpV/uV3CJO/CIVlAkF7vF0dv/KUCMeHOoyEIzW51Ci+
8+
iwIDAQAB
9+
-----END PUBLIC KEY-----

0 commit comments

Comments
 (0)
Please sign in to comment.