-
Notifications
You must be signed in to change notification settings - Fork 23
48 lines (44 loc) · 1.15 KB
/
scan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: scan
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '18 10 * * 3'
permissions:
contents: read
jobs:
scan-fossa:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Run FOSSA scan and upload build data
uses: fossa-contrib/[email protected]
with:
# FOSSA Push-Only API Token
fossa-api-key: 0580abfd8ed19432331e14f6e9eaa7ff
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
scan-codeql:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup Go
uses: actions/[email protected]
with:
go-version: 1.20.x
cache-dependency-path: |
**/go.sum
**/go.mod
- name: Initialize CodeQL
uses: github/codeql-action/[email protected]
with:
languages: go
- name: Autobuild
uses: github/codeql-action/[email protected]
- name: Perform CodeQL Analysis
uses: github/codeql-action/[email protected]