-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into isolate-metrics
- Loading branch information
Showing
13 changed files
with
210 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
ignore: | ||
- "./api" # ignore folders and all its contents | ||
- "./api" # ignore folders and all its contents | ||
coverage: | ||
status: | ||
patch: | ||
default: | ||
target: 80% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: clean-dev-package | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
cleanup-packages: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
steps: | ||
- name: Clean up ratify-crds-dev | ||
uses: actions/delete-package-versions@e5bc658cc4c965c472efe991f8beea3981499c55 # v5.0.0 | ||
with: | ||
package-name: 'ratify-crds-dev' | ||
package-type: 'container' | ||
min-versions-to-keep: 7 | ||
delete-only-pre-release-versions: "true" | ||
- name: Clean up ratify-dev | ||
uses: actions/delete-package-versions@e5bc658cc4c965c472efe991f8beea3981499c55 # v5.0.0 | ||
with: | ||
package-name: 'ratify-dev' | ||
package-type: 'container' | ||
min-versions-to-keep: 7 | ||
delete-only-pre-release-versions: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: scan_vulns | ||
on: | ||
push: | ||
paths-ignore: | ||
- "docs/**" | ||
- "library/**" | ||
- "**.md" | ||
pull_request: | ||
paths-ignore: | ||
- "docs/**" | ||
- "library/**" | ||
- "**.md" | ||
workflow_dispatch: | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
govulncheck: | ||
name: "Run govulncheck" | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 15 | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0 | ||
with: | ||
egress-policy: audit | ||
|
||
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | ||
with: | ||
go-version: "1.22" | ||
check-latest: true | ||
- uses: golang/govulncheck-action@dd0578b371c987f96d1185abb54344b44352bd58 # v1.0.3 | ||
|
||
scan_vulnerabilities: | ||
name: "[Trivy] Scan for vulnerabilities" | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 15 | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0 | ||
with: | ||
egress-policy: audit | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 | ||
|
||
- name: Download trivy | ||
run: | | ||
pushd $(mktemp -d) | ||
wget https://github.com/aquasecurity/trivy/releases/download/v${{ env.TRIVY_VERSION }}/trivy_${{ env.TRIVY_VERSION }}_Linux-64bit.tar.gz | ||
tar zxvf trivy_${{ env.TRIVY_VERSION }}_Linux-64bit.tar.gz | ||
echo "$(pwd)" >> $GITHUB_PATH | ||
env: | ||
TRIVY_VERSION: "0.46.0" | ||
|
||
- name: Run trivy on git repository | ||
run: | | ||
trivy fs --format table --ignore-unfixed --scanners vuln . | ||
- name: Build docker images | ||
run: | | ||
make e2e-build-local-ratify-image | ||
make e2e-build-crd-image | ||
- name: Run trivy on images for all severity | ||
run: | | ||
for img in "localbuild:test" "localbuildcrd:test"; do | ||
trivy image --ignore-unfixed --vuln-type="os,library" "${img}" | ||
done | ||
- name: Run trivy on images and exit on HIGH severity | ||
run: | | ||
for img in "localbuild:test" "localbuildcrd:test"; do | ||
trivy image --ignore-unfixed --exit-code 1 --severity HIGH --vuln-type="os,library" "${img}" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
apiVersion: v2 | ||
name: ratify | ||
description: A Helm chart for Ratify | ||
version: 1.12.0 | ||
appVersion: v1.1.0 | ||
version: 1.13.0 | ||
appVersion: v1.2.0 | ||
home: https://github.com/deislabs/ratify | ||
icon: https://raw.githubusercontent.com/deislabs/ratify/main/logo.svg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.