Skip to content

Commit 8fdb105

Browse files
authored
Merge pull request #302 from cipherstash/automations
ci(security): add CodeQL and OSV-Scanner workflows
2 parents b5af0c3 + 7c9bd48 commit 8fdb105

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
schedule:
11+
- cron: "0 8 * * 1"
12+
13+
permissions:
14+
security-events: write
15+
contents: read
16+
actions: read
17+
18+
jobs:
19+
analyze:
20+
name: Analyze
21+
runs-on: blacksmith-4vcpu-ubuntu-2404
22+
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
language:
27+
- javascript-typescript
28+
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@v4
32+
33+
- name: Initialize CodeQL
34+
uses: github/codeql-action/init@v4
35+
with:
36+
languages: ${{ matrix.language }}
37+
38+
- name: Perform CodeQL Analysis
39+
uses: github/codeql-action/analyze@v4
40+
with:
41+
category: "/language:${{ matrix.language }}"

.github/workflows/osv-scanner.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: OSV-Scanner
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
schedule:
11+
- cron: "0 8 * * 1"
12+
13+
permissions:
14+
security-events: write
15+
contents: read
16+
actions: read
17+
18+
jobs:
19+
osv-scan:
20+
name: OSV Vulnerability Scan
21+
uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v2.3.3
22+
with:
23+
fail-on-vuln: false
24+
scan-args: |-
25+
--recursive
26+
./

0 commit comments

Comments
 (0)