Linear.app Secret Scan #29
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: "Linear.app Secret Scan" | |
on: | |
schedule: | |
- cron: '0 15 * * 1' | |
workflow_dispatch: | |
jobs: | |
secret_scanning: | |
permissions: write-all | |
runs-on: [ubuntu-latest] | |
steps: | |
- name: Scan Linear.app with n0s1-action | |
uses: spark1security/n0s1-action@main | |
env: | |
LINEAR_TOKEN: ${{ secrets.LINEAR_TOKEN }} | |
with: | |
scan-target: 'linear_scan' | |
report-format: "sarif" | |
report-file: "report.sarif" | |
- name: Create JIRA tickets for n0s1 findings | |
uses: GeorgeDavis-Ibexlabs/[email protected] | |
with: | |
jira_cloud_url: "https://spark1us.atlassian.net" | |
jira_auth_email: "[email protected]" | |
jira_project_key: "DLP" | |
jira_api_token: ${{ secrets.JIRA_TOKEN }} | |
jira_default_issue_labels: "n0s1,credential-leak" | |
- name: Display SARIF result | |
run: | | |
cat report.sarif | jq | head -n 20 | |
cat report.sarif | jq | tail -n 20 | |
- name: Upload scan report to GitHub Security tab | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: "report.sarif" |