-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: first commit * chore: first commit * chore: first commit * chore: first commit * chore: first commit * chore: added vulnerability scan * chore: added vulnerability scan * chore: added vulnerability scan * chore: added vulnerability scan * chore: added vulnerability scan * chore: added vulnerability scan * chore: changes in the dockerfile
- Loading branch information
1 parent
5c246e0
commit 2b95a8c
Showing
6 changed files
with
65 additions
and
42 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
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,37 @@ | ||
name: RPC Proxy - Vulnerability scan | ||
|
||
on: | ||
workflow_call: | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
checks: write | ||
actions: read | ||
|
||
jobs: | ||
vulnerability-scan: | ||
name: Vulnerability Scan | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Print commit hash | ||
run: echo ${{ github.sha }} | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build Docker image | ||
run: | | ||
IMAGE_TAG=rpc-proxy-${{ github.sha }} | ||
docker build -f ./docker/rpc-proxy/Dockerfile -t $IMAGE_TAG . | ||
- name: Run Trivy Scan | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
image-ref: rpc-proxy-${{ github.sha }} | ||
format: 'table' | ||
ignore-unfixed: true | ||
exit-code: '1' | ||
vuln-type: os,library | ||
severity: CRITICAL,HIGH,MEDIUM | ||
scanners: misconfig,vuln,secret |
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,15 @@ | ||
name: RPC Proxy | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
test: | ||
uses: ./.github/workflows/rpc-proxy-test.yml | ||
secrets: inherit | ||
|
||
docker-vulnerability-check: | ||
uses: ./.github/workflows/rpc-proxy-vulnerability-scan.yml | ||
secrets: inherit | ||
|
||
|
This file was deleted.
Oops, something went wrong.
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
2b95a8c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Coverage
Summary