-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #294 from SuperChen-CC/scan-action
feat: add OpenSCA Scan Action
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 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
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" |