File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Nightly Security Scan
2+
3+ on :
4+ schedule :
5+ - cron : ' 30 0 * * *'
6+ workflow_dispatch :
7+
8+ jobs :
9+ osv-scan :
10+ permissions :
11+ contents : read
12+ security-events : write
13+ actions : read
14+ checks : write
15+ statuses : write
16+ uses : TykTechnologies/github-actions/.github/workflows/osv-path-scan.yml@78124512432a6f63372529cecbbbf58bf0411fa5
17+ with :
18+ image_name : " TykTechnologies/tyk-ui:${{ github.ref_name }}"
19+ scan_args : " --format json --output osv-results.json --lockfile package-lock.json"
20+
21+ s1-scan :
22+ name : SentinelOne CNS Scan
23+ uses : TykTechnologies/github-actions/.github/workflows/s1-cns-scan.yml@78124512432a6f63372529cecbbbf58bf0411fa5 # main
24+ permissions :
25+ contents : read
26+ with :
27+ iac_enabled : false
28+ tag : service:vulnscan
29+ scope_type : ACCOUNT
30+ secrets :
31+ S1_API_TOKEN : ${{ secrets.S1_API_TOKEN }}
32+ CONSOLE_URL : ${{ secrets.S1_CONSOLE_URL }}
33+ SCOPE_ID : ${{ secrets.S1_SCOPE_ID }}
34+
35+ notify-complete :
36+ name : Notify Slack on completion
37+ runs-on : ubuntu-latest
38+ needs : [osv-scan, s1-scan]
39+ if : always() && needs.osv-scan.result != 'cancelled' && needs.osv-scan.result != 'skipped'
40+ steps :
41+ - name : Post to Slack
42+ uses : slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1
43+ with :
44+ method : chat.postMessage
45+ token : ${{ secrets.SLACK_BOT_TOKEN }}
46+ payload : |
47+ {
48+ "channel": "${{ secrets.CVE_SLACK_CHANNEL }}",
49+ "blocks": [
50+ {
51+ "type": "section",
52+ "text": {
53+ "type": "mrkdwn",
54+ "text": "*Nightly Path-Based CVE Scan: ${{ github.repository }}*\n${{ needs.osv-scan.outputs.slack_summary }}\n<${{ needs.osv-scan.outputs.check_run_url }}|Full CVE Report>"
55+ }
56+ }
57+ ]
58+ }
You can’t perform that action at this time.
0 commit comments