Skip to content

Commit 65d0095

Browse files
authored
Modify CodeQL workflow settings and queries
Updated CodeQL workflow to run on ubuntu-latest and added security queries.
1 parent e10da9b commit 65d0095

1 file changed

Lines changed: 2 additions & 30 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ concurrency:
1616
jobs:
1717
analyze:
1818
name: Analyze (${{ matrix.language }})
19-
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
19+
runs-on: ubuntu-latest
2020

2121
permissions:
2222
security-events: write
2323
actions: read
2424
contents: read
25-
packages: read
2625

2726
strategy:
2827
fail-fast: false
@@ -39,39 +38,12 @@ jobs:
3938
with:
4039
fetch-depth: 0
4140

42-
- name: Setup Node.js
43-
if: matrix.language == 'javascript-typescript'
44-
uses: actions/setup-node@v4
45-
with:
46-
node-version: 20
47-
cache: npm
48-
49-
- name: Install dependencies
50-
if: matrix.language == 'javascript-typescript'
51-
shell: bash
52-
run: |
53-
if [ -f package-lock.json ] || [ -f npm-shrinkwrap.json ]; then
54-
npm ci
55-
else
56-
echo "No npm lockfile found; skipping npm install"
57-
fi
58-
5941
- name: Initialize CodeQL
6042
uses: github/codeql-action/init@v4
6143
with:
6244
languages: ${{ matrix.language }}
6345
build-mode: ${{ matrix.build-mode }}
64-
65-
- name: Autobuild
66-
if: matrix.build-mode == 'autobuild'
67-
uses: github/codeql-action/autobuild@v4
68-
69-
- name: Run manual build steps
70-
if: matrix.build-mode == 'manual'
71-
shell: bash
72-
run: |
73-
echo "Add your manual build commands here"
74-
exit 1
46+
queries: +security-extended,security-and-quality
7547

7648
- name: Perform CodeQL Analysis
7749
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)