Skip to content

Commit

Permalink
OBaaS Image - remove restricted action (#796)
Browse files Browse the repository at this point in the history
* Add workflow

* Update obaas-base-image.yml

Change usage to comply with action restrictions
  • Loading branch information
gotsysdba authored Dec 1, 2023
1 parent 473c44a commit 989a30b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/obaas-base-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ jobs:
- name: Run Trivy Vulnerability Scanner
id: trivy_scan
if: env.latest_digest != ''
uses: aquasecurity/trivy-action@master
with:
image-ref: ghcr.io/${{ github.repository_owner }}/${{ env.dst_img }}:latest
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
env:
TRIVY_DEFAULT: "--format table --ignore-unfixed --exit-code 1"
TRIVY_SCAN: "--severity CRITICAL,HIGH --vuln-type os,library"
run: >
docker run --rm ghcr.io/aquasecurity/trivy:latest image $TRIVY_DEFAULT $TRIVY_SCAN
--username ${{ github.actor }}
--password ${{ secrets.GITHUB_TOKEN }}
ghcr.io/${{ github.repository_owner }}/${{ env.dst_img }}:latest
continue-on-error: true

- name: Update Existing Image
Expand Down

0 comments on commit 989a30b

Please sign in to comment.