Skip to content

Commit 61fba39

Browse files
committed
TT-16670: added OSV path-based scan workflow
1 parent d0494b5 commit 61fba39

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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@4b391e2db0148d23689011634a02a1d805e9cd6a
17+
with:
18+
image_name: "tykio/tyk-ui:${{ github.ref_name }}"
19+
20+
s1-scan:
21+
name: SentinelOne CNS Scan
22+
uses: TykTechnologies/github-actions/.github/workflows/s1-cns-scan.yml@d3fa20888fa2878e877e22bb7702141217290e7c # main
23+
permissions:
24+
contents: read
25+
with:
26+
iac_enabled: false
27+
tag: service:vulnscan
28+
scope_type: ACCOUNT
29+
secrets:
30+
S1_API_TOKEN: ${{ secrets.S1_API_TOKEN }}
31+
CONSOLE_URL: ${{ secrets.S1_CONSOLE_URL }}
32+
SCOPE_ID: ${{ secrets.S1_SCOPE_ID }}
33+
34+
notify-complete:
35+
name: Notify Slack on completion
36+
runs-on: ubuntu-latest
37+
needs: [osv-scan, s1-scan]
38+
if: always() && needs.osv-scan.result != 'cancelled' && needs.osv-scan.result != 'skipped'
39+
steps:
40+
- name: Post to Slack
41+
uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1
42+
with:
43+
method: chat.postMessage
44+
token: ${{ secrets.SLACK_BOT_TOKEN }}
45+
payload: |
46+
{
47+
"channel": "${{ secrets.CVE_SLACK_CHANNEL }}",
48+
"blocks": [
49+
{
50+
"type": "section",
51+
"text": {
52+
"type": "mrkdwn",
53+
"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>"
54+
}
55+
}
56+
]
57+
}

0 commit comments

Comments
 (0)