Skip to content

Commit fbb028a

Browse files
authored
ci: Updated CodeQL configuration. (#4)
1 parent 74e9f75 commit fbb028a

File tree

2 files changed

+50
-47
lines changed

2 files changed

+50
-47
lines changed

.github/workflows/codeql-analysis.yaml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/codeql.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CodeQL
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
schedule:
11+
- cron: '30 7 * * *'
12+
13+
jobs:
14+
analyze:
15+
name: Analyze (${{ matrix.language }})
16+
# Runner size impacts CodeQL analysis time. To learn more, please see:
17+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
18+
# - https://gh.io/supported-runners-and-hardware-resources
19+
# - https://gh.io/using-larger-runners (GitHub.com only)
20+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
21+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
22+
permissions:
23+
# required for all workflows
24+
security-events: write
25+
# required to fetch internal or private CodeQL packs
26+
packages: read
27+
# only required for workflows in private repositories
28+
actions: read
29+
contents: read
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
include:
34+
# We use javascript to analyze JSON and YAML files.
35+
- language: javascript-typescript
36+
build_mode: none
37+
- language: actions
38+
build_mode: none
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v4
42+
- name: Initialize CodeQL
43+
uses: github/codeql-action/init@v3
44+
with:
45+
languages: ${{ matrix.language }}
46+
build-mode: ${{ matrix.build-mode }}
47+
- name: Perform CodeQL Analysis
48+
uses: github/codeql-action/analyze@v3
49+
with:
50+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)