Skip to content

Commit

Permalink
add image scanning on pull_request
Browse files Browse the repository at this point in the history
Signed-off-by: zhzhuang-zju <m17799853869@163.com>
  • Loading branch information
zhzhuang-zju committed Jan 10, 2024
1 parent ae12242 commit 8a260df
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci-image-scanning-on-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: image-scanning
on:
pull_request:
jobs:
use-trivy-to-scan-image:
name: image scannning
# prevent job running from forked repository
if: ${{ github.repository == 'karmada-io/karmada' }}
runs-on: ubuntu-22.04
steps:
- name: checkout code
uses: actions/checkout@v3
- name: install Go
uses: actions/setup-go@v3
with:
go-version: 1.20.11
- name: Image scan
run: |
hack/vuln-scan-local.sh false

0 comments on commit 8a260df

Please sign in to comment.