File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow uses actions that are not certified by GitHub.
2+ # They are provided by a third-party and are governed by
3+ # separate terms of service, privacy policy, and support
4+ # documentation.
5+ # JFrog SAST performs 1st party source code security analysis
6+ # For more information, see
7+ # https://docs.jfrog-applications.jfrog.io/jfrog-security-features/sast
8+
9+ name : " JFrog SAST Scan"
10+
11+ on :
12+ push :
13+ branches : [ "main" ]
14+ pull_request :
15+ branches : [ "main" ]
16+ schedule :
17+ - cron : ' 15 1 * * 3'
18+
19+ env :
20+ # [Mandatory]
21+ # JFrog platform URL and access token for
22+ # a JFrog platform instance with active
23+ # JFrog Advanced Security subscription
24+ JF_URL : ${{ secrets.JF_URL }}
25+ JF_TOKEN : ${{ secrets.JF_ACCESS_TOKEN }}
26+ jobs :
27+ analyze :
28+ name : Analyze
29+ runs-on : ubuntu-latest
30+ permissions :
31+ actions : read
32+ contents : read
33+ security-events : write
34+ steps :
35+ - name : Checkout repository
36+ uses : actions/checkout@v4
37+
38+ - name : Setup Node.js
39+ uses : actions/setup-node@v4
40+
41+ - name : Install and configure JFrog CLI
42+ run : |
43+ npm install -g jfrog-cli-v2-jf
44+ echo $JF_TOKEN | jf c add --interactive=false --url=$JF_URL --access-token-stdin
45+
46+ - name : Run JFrog SAST
47+ run : |
48+ jf audit --sast --format=sarif > jfrog_sast.sarif
49+
50+
51+ - name : Upload output to generate autofix
52+ uses : github/codeql-action/upload-sarif@v3
53+ with :
54+ sarif_file : jfrog_sast.sarif
You can’t perform that action at this time.
0 commit comments