-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Hadolint and Trivy Checks (#557)
* Add Hadolint and Trivy Checks * fix: Resolve 'no more disk space' --------- Co-authored-by: Harald Heckmann <[email protected]>
- Loading branch information
1 parent
41a2564
commit 82ead37
Showing
4 changed files
with
45 additions
and
4 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 |
---|---|---|
|
@@ -7,7 +7,17 @@ on: | |
- '^v[0-9]+.[0-9]+.[0-9]+$' | ||
|
||
jobs: | ||
hadolint: | ||
runs-on: ubuntu-20.04 | ||
name: "Hadolint" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: hadolint/[email protected] | ||
with: | ||
dockerfile: "./Dockerfile" | ||
|
||
publish: | ||
needs: hadolint | ||
name: Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -48,7 +58,15 @@ jobs: | |
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
|
||
- name: Trivy Scan | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
image-ref: 'zeitgeistpm/zeitgeist-node-parachain:latest' | ||
format: 'sarif' | ||
output: 'zeitgeist-node-parachain-report.sarif' | ||
severity: 'HIGH,CRITICAL' | ||
|
||
- name: Update image version of the existing Zeitgeist network spec | ||
uses: "OnFinality-io/action-onf-release@v1" | ||
with: | ||
|
@@ -69,4 +87,4 @@ jobs: | |
onf-network-key: ${{ secrets.ONF_NETWORK_KEY_BS }} | ||
onf-sub-command: image | ||
onf-action: add | ||
image-version: ${{ steps.vars.outputs.tag }} | ||
image-version: ${{ steps.vars.outputs.tag }} |
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 |
---|---|---|
|
@@ -7,7 +7,17 @@ on: | |
tags: [ '*' ] | ||
|
||
jobs: | ||
hadolint: | ||
runs-on: ubuntu-20.04 | ||
name: "Hadolint" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: hadolint/[email protected] | ||
with: | ||
dockerfile: "./Dockerfile" | ||
|
||
publish: | ||
needs: hadolint | ||
name: Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -28,3 +38,11 @@ jobs: | |
else | ||
./scripts/docker-hub-publish.sh ${GITHUB_SHA} | ||
fi | ||
- name: Trivy Scan | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
image-ref: 'zeitgeistpm/zeitgeist-node:latest' | ||
format: 'sarif' | ||
output: 'zetgeist-node-report.sarif' | ||
severity: 'HIGH,CRITICAL' |
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,3 @@ | ||
ignored: | ||
- SC1091 | ||
- SC2115 |
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