Merge branch 'master' of github.com:qvest-digital/jensjs #64
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
{ | |
"jobs": { | |
"codacy-security-scan": { | |
"permissions": { | |
"actions": "read", | |
"contents": "read", | |
"security-events": "write" | |
}, | |
"runs-on": "ubuntu-latest", | |
"steps": [ | |
{ | |
"uses": "actions/[email protected]" | |
}, | |
{ | |
"uses": "codacy/[email protected]", | |
"with": { | |
"format": "sarif", | |
"gh-code-scanning-compat": true, | |
"max-allowed-issues": 2147483647, | |
"output": "results.sarif", | |
"project-token": "${{ secrets.CODACY_PROJECT_TOKEN }}", | |
"verbose": true | |
} | |
}, | |
{ | |
"uses": "actions/[email protected]", | |
"with": { | |
"name": "SARIF", | |
"path": "results.sarif" | |
} | |
}, | |
{ | |
"run": "jq -c '.runs |= unique_by({tool, invocations, results})' <results.sarif >editedresults.sarif\nrm results.sarif\nmkdir results.sarif\njq -c '.runs |= .[0:15]' <editedresults.sarif >results.sarif/1.sarif\njq -c '.runs |= .[15:]' <editedresults.sarif >results.sarif/2.sarif\n" | |
}, | |
{ | |
"uses": "github/codeql-action/upload-sarif@v3", | |
"with": { | |
"sarif_file": "results.sarif" | |
} | |
} | |
] | |
} | |
}, | |
"name": "Codacy Security Scan", | |
"on": { | |
"push": { | |
"branches": [ | |
"master" | |
] | |
}, | |
"workflow_dispatch": null | |
}, | |
"permissions": { | |
"contents": "read" | |
} | |
} |