feat: add OpenSCA Scan Action #5
Workflow file for this run
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
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: | |
fetch-depth: 0 | |
- name: Sparse checkout | |
run: | | |
git sparse-checkout set /* | |
git sparse-checkout add '!test/' | |
- 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" |