-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1014 Bytes
/
invoke-codeql-analysis.yml
File metadata and controls
37 lines (37 loc) · 1014 Bytes
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Invoke CodeQL Analysis"
on:
pull_request:
branches:
- "**"
types:
- "edited"
- "opened"
- "reopened"
- "synchronize"
push:
branches:
- "**"
workflow_dispatch:
jobs:
main:
if: "${{!(github.event_name == 'pull_request' && github.event.pull_request.head.repo.id == github.event.pull_request.base.repo.id)}}"
permissions:
actions: "read"
contents: "read"
security-events: "write"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout Repository"
uses: "actions/checkout@v5"
with:
fetch-depth: "0"
- name: "Initialize CodeQL"
uses: "github/codeql-action/init@v3"
with:
build-mode: "none"
config-file: "./.codeql.yml"
trap-caching: "false"
dependency-caching: "false"
- name: "Analyze Repository"
uses: "github/codeql-action/analyze@v3"