Skip to content

Commit

Permalink
ci: update and cleanup CI tools used (#1326)
Browse files Browse the repository at this point in the history
  • Loading branch information
akashsinghal authored Mar 14, 2024
1 parent 4288940 commit c963bed
Show file tree
Hide file tree
Showing 12 changed files with 128 additions and 82 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Test CLI
run: |
make install ratify-config install-bats
make test-e2e-cli LOCAL_REGISTRY_IMAGE=registry GOCOVERDIR=${GITHUB_WORKSPACE}/test/e2e/.cover
make test-e2e-cli GOCOVERDIR=${GITHUB_WORKSPACE}/test/e2e/.cover
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@54bcd8715eee62d40e33596ef5e8f0f48dbbccab # v4.1.0

Expand Down
156 changes: 89 additions & 67 deletions Makefile

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ spec:
- MIT AND LicenseRef-AND AND BSD-2-Clause AND LicenseRef-AND AND GPL-2.0-or-later
- MPL-2.0 AND LicenseRef-AND AND MIT
- BSD-2-Clause AND LicenseRef-AND AND BSD-3-Clause
- NONE
- NONE
- NOASSERTION
- ""
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: verifier-schemavalidator
spec:
name: schemavalidator
artifactTypes: vnd.aquasecurity.trivy.report.sarif.v1
artifactTypes: application/vnd.aquasecurity.trivy.report.sarif.v1
parameters:
schemas:
application/sarif+json: https://json.schemastore.org/sarif-2.1.0-rtm.5.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: verifier-schemavalidator
spec:
name: schemavalidator
artifactTypes: vnd.aquasecurity.trivy.report.sarif.v1
artifactTypes: application/vnd.aquasecurity.trivy.report.sarif.v1
parameters:
schemas:
application/sarif+json: https://json.schemastore.org/sourcehut-build-0.65.0.json
4 changes: 2 additions & 2 deletions plugins/verifier/schemavalidator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Schemas can be configured in Ratify config.json or via CRD.
"plugins": [
{
"name": "schemavalidator",
"artifactTypes": "vnd.aquasecurity.trivy.report.sarif.v1",
"artifactTypes": "application/vnd.aquasecurity.trivy.report.sarif.v1",
"schemas": {
"application/sarif+json": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json"
}
Expand All @@ -23,7 +23,7 @@ metadata:
name: verifier-schemavalidator
spec:
name: schemavalidator
artifactTypes: vnd.aquasecurity.trivy.report.sarif.v1
artifactTypes: application/vnd.aquasecurity.trivy.report.sarif.v1
parameters:
schemas:
application/sarif+json: https://json.schemastore.org/sarif-2.1.0-rtm.5.json
Expand Down
4 changes: 3 additions & 1 deletion test/bats/tests/config/complete_licensechecker_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
"MIT AND LicenseRef-AND AND BSD-2-Clause AND LicenseRef-AND AND GPL-2.0-or-later",
"MPL-2.0 AND LicenseRef-AND AND MIT",
"BSD-2-Clause AND LicenseRef-AND AND BSD-3-Clause",
"NONE"
"NONE",
"NOASSERTION",
""
]
}
]
Expand Down
8 changes: 5 additions & 3 deletions test/bats/tests/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"plugins": [
{
"name": "schemavalidator",
"artifactTypes": "vnd.aquasecurity.trivy.report.sarif.v1",
"artifactTypes": "application/vnd.aquasecurity.trivy.report.sarif.v1",
"schemas": {
"application/sarif+json": "file:///home/runner/.ratify/schemas/sarif-2.1.0-rtm.5.json"
}
Expand Down Expand Up @@ -67,7 +67,7 @@
},
{
"name": "schemavalidator",
"artifactTypes": "vnd.aquasecurity.trivy.report.sarif.v1",
"artifactTypes": "application/vnd.aquasecurity.trivy.report.sarif.v1",
"schemas": {
"application/sarif+json": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json"
}
Expand All @@ -88,7 +88,9 @@
"MIT AND LicenseRef-AND AND BSD-2-Clause AND LicenseRef-AND AND GPL-2.0-or-later",
"MPL-2.0 AND LicenseRef-AND AND MIT",
"BSD-2-Clause AND LicenseRef-AND AND BSD-3-Clause",
"NONE"
"NONE",
"NOASSERTION",
""
]
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
"MIT AND LicenseRef-AND AND BSD-2-Clause AND LicenseRef-AND AND GPL-2.0-or-later",
"MPL-2.0 AND LicenseRef-AND AND MIT",
"BSD-2-Clause AND LicenseRef-AND AND BSD-3-Clause",
"NONE"
"NONE",
"NOASSERTION",
""
]
}
]
Expand Down
8 changes: 5 additions & 3 deletions test/bats/tests/config/cosign_keyless_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"plugins": [
{
"name": "schemavalidator",
"artifactTypes": "vnd.aquasecurity.trivy.report.sarif.v1",
"artifactTypes": "application/vnd.aquasecurity.trivy.report.sarif.v1",
"schemas": {
"application/sarif+json": "file:///home/runner/.ratify/schemas/sarif-2.1.0-rtm.5.json"
}
Expand Down Expand Up @@ -63,7 +63,7 @@
},
{
"name": "schemavalidator",
"artifactTypes": "vnd.aquasecurity.trivy.report.sarif.v1",
"artifactTypes": "application/vnd.aquasecurity.trivy.report.sarif.v1",
"schemas": {
"application/sarif+json": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json"
}
Expand All @@ -84,7 +84,9 @@
"MIT AND LicenseRef-AND AND BSD-2-Clause AND LicenseRef-AND AND GPL-2.0-or-later",
"MPL-2.0 AND LicenseRef-AND AND MIT",
"BSD-2-Clause AND LicenseRef-AND AND BSD-3-Clause",
"NONE"
"NONE",
"NOASSERTION",
""
]
}
]
Expand Down
2 changes: 1 addition & 1 deletion test/bats/tests/config/schemavalidator_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"plugins": [
{
"name": "schemavalidator",
"artifactTypes": "vnd.aquasecurity.trivy.report.sarif.v1",
"artifactTypes": "application/vnd.aquasecurity.trivy.report.sarif.v1",
"schemas": {
"application/sarif+json": "file:///home/runner/.ratify/schemas/sarif-2.1.0-rtm.5.json"
}
Expand Down
14 changes: 14 additions & 0 deletions test/bats/tests/config/zot-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"Storage": {
"RootDirectory": "/var/lib/registry"
},
"HTTP": {
"Address": "0.0.0.0",
"Port": "5000",
"Auth": {
"HTPasswd": {
"Path": "/etc/zot/htpasswd"
}
}
}
}

0 comments on commit c963bed

Please sign in to comment.