-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 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,30 @@ | ||
name: "Confluence Secret Scan" | ||
|
||
on: | ||
schedule: | ||
- cron: '0 13 * * 1' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
confluence_secret_scanning: | ||
permissions: write-all | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- name: Scan Confluence with n0s1-action | ||
uses: spark1security/n0s1-action@main | ||
env: | ||
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }} | ||
with: | ||
scan-target: 'confluence_scan' | ||
user-email: '[email protected]' | ||
platform-url: 'https://spark1us.atlassian.net' | ||
report-format: "sarif" | ||
report-file: "confluence_secret_report.sarif" | ||
- name: Display SARIF result | ||
run: | | ||
cat confluence_secret_report.sarif | jq | head -n 20 | ||
cat confluence_secret_report.sarif | jq | tail -n 20 | ||
- name: Upload scan report to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: "confluence_secret_report.sarif" |
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