mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 18:16:47 +00:00
add security scanning
This commit is contained in:
parent
c526fcb42f
commit
8bd4a28fa5
12
.github/workflows/build_package.yml
vendored
12
.github/workflows/build_package.yml
vendored
@ -68,6 +68,18 @@ jobs:
|
||||
docker push docker.io/${{ env.DOCKER_HUB_ORGANIZATION }}/${{ env.DOCKER_HUB_REPOSITORY }} --all-tags
|
||||
echo docker done
|
||||
|
||||
- name: Run Trivy vulnerability scanner
|
||||
uses: aquasecurity/trivy-action@master
|
||||
with:
|
||||
image-ref: 'docker.io/${{ secrets.DOCKER_HUB_ORGANIZATION }}/${{ secrets.DOCKER_HUB_REPOSITORY }}:${{ github.sha }}'
|
||||
format: 'template'
|
||||
template: '@/contrib/sarif.tpl'
|
||||
output: 'trivy-results.sarif'
|
||||
- name: Upload Trivy scan results to GitHub Security tab
|
||||
uses: github/codeql-action/upload-sarif@v1
|
||||
with:
|
||||
sarif_file: 'trivy-results.sarif'
|
||||
|
||||
- uses: sigstore/cosign-installer@main
|
||||
|
||||
- name: Write signing key to disk (only needed for `cosign sign --key`)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user