-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.61 KB
/
Copy pathcodeql.yml
File metadata and controls
50 lines (46 loc) · 1.61 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
name: codeql
# CodeQL static analysis for the Rust crates and the TypeScript/JavaScript npm
# package. `security-extended` is appropriate for a library handling tokens,
# sessions, and crypto. Runs on push/PR to main and on a weekly schedule so a newly
# published query reaches the codebase even without a code change.
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Mondays 06:17 UTC — an off-peak, non-round minute to avoid the top-of-hour rush.
- cron: "17 6 * * 1"
# Least privilege: read the code, write security results. No job widens this further.
permissions:
contents: read
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [rust, javascript-typescript]
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@c35d1b164463ee62a100735382aaaa525c5d3496 # v2.25.6
with:
languages: ${{ matrix.language }}
queries: security-extended
- name: Autobuild
uses: github/codeql-action/autobuild@c35d1b164463ee62a100735382aaaa525c5d3496 # v2.25.6
- name: Analyze
uses: github/codeql-action/analyze@c35d1b164463ee62a100735382aaaa525c5d3496 # v2.25.6
with:
category: "/language:${{ matrix.language }}"