Skip to content

Commit

Permalink
Merge pull request #294 from SuperChen-CC/scan-action
Browse files Browse the repository at this point in the history
feat: add OpenSCA Scan Action
  • Loading branch information
SuperChen-CC authored Jun 11, 2024
2 parents 3fbc359 + 0b835e4 commit 458d4e0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/run_opensca_scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: OpenSCA Scan

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:


jobs:
opensca_scan:
name: OpenSCA Scan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: |
cmd/
opensca/
go.mod
main.go
- name: Run OpenSCA Scan
uses: XmirrorSecurity/opensca-scan-action@v1
with:
token: ${{ secrets.OPENSCA_TOKEN }}
project: ${{ secrets.OPENSCA_PROJECT_ID }}
need-artifact: true
out: "outputs/results.json,outputs/result.html"

0 comments on commit 458d4e0

Please sign in to comment.