-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[skip ci] Signed-off-by: Christopher Atkins <christopher316@gmail.com>
- Loading branch information
Showing
1 changed file
with
27 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,27 @@ | ||
name: "42Crunch API Security Audit" | ||
|
||
on: | ||
workflow_dispatch: | ||
jobs: | ||
run_42c_audit: | ||
permissions: | ||
contents: read # for actions/checkout to fetch code | ||
security-events: write # for results upload to Github Code Scanning | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
- name: Audit API definition for security issues | ||
uses: 42Crunch/api-security-audit-action-freemium@v1 | ||
with: | ||
# Upload results to Github Code Scanning | ||
upload-to-code-scanning: true | ||
log-level: info | ||
sarif-report: 42Crunch_AuditReport_${{ github.run_id }}.SARIF | ||
- name: save-audit-report | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: 42Crunch_AuditReport_${{ github.run_id }} | ||
path: 42Crunch_AuditReport_${{ github.run_id }}.SARIF | ||
if-no-files-found: error |