-
Notifications
You must be signed in to change notification settings - Fork 476
66 lines (60 loc) · 1.94 KB
/
Copy pathaudit.yml
File metadata and controls
66 lines (60 loc) · 1.94 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Audit Codes 🔍
on:
push:
branches:
- main
- next
pull_request:
branches:
- '**'
paths-ignore:
- '**/*.md'
- '**/*.txt'
- '**/*.spec.ts'
jobs:
codeql-scan:
name: Scan Vulnerabilities with CodeQL (${{ matrix.language }}) 🛡️
runs-on: ubuntu-latest
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
packages: read
# only required for workflows in private repositories
actions: read
contents: read
strategy:
fail-fast: false
matrix:
language: [actions, javascript-typescript]
steps:
- name: Checkout 🛎️
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
with:
fetch-depth: 20
fetch-tags: false
- name: Initialize CodeQL ⚙️
uses: github/codeql-action/init@42213152a85ae7569bdb6bec7bcd74cd691bfe41 # v3
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis 🔍
uses: github/codeql-action/analyze@42213152a85ae7569bdb6bec7bcd74cd691bfe41 # v3
with:
category: '/language:${{ matrix.language }}'
osv-scan:
name: Scan Vulnerabilities with OSV 🛡️
uses: 'google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@e92b5d07338d4f0ba0981dffed17c48976ca4730' # v2.2.3
permissions:
# Required to upload SARIF file to CodeQL. See: https://github.com/github/codeql-action/issues/2117
actions: read
# Require writing security events to upload SARIF file to security tab
security-events: write
# Only need to read contents
contents: read
with:
# Start the scan from the root of the repository and scan subdirectories recursively.
scan-args: |-
--lockfile=package-lock.json
--lockfile=website/package-lock.json
-r
./