-
Notifications
You must be signed in to change notification settings - Fork 31
42 lines (37 loc) · 1.13 KB
/
codeql-analysis.yml
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
name: "Sjekk kodekvalitet"
on:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- "**/*.js"
- "**/*.ts"
- "**/*.tsx"
- "pnpm-lock.yaml"
schedule:
- cron: "0 18 * * 3"
run-name: Sjekk kodekvalitet for commit ${{ github.sha }}
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ["javascript"]
permissions:
contents: read
security-events: write
pull-requests: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
if: ${{ !contains(github.event.head_commit.message, '[ci skip release]') }}
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
if: ${{ !contains(github.event.head_commit.message, '[ci skip release]') }}
uses: github/codeql-action/analyze@v2