-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcodeql.yml
More file actions
63 lines (54 loc) · 1.62 KB
/
Copy pathcodeql.yml
File metadata and controls
63 lines (54 loc) · 1.62 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
51
52
53
54
55
56
57
58
59
60
61
62
63
# SPDX-License-Identifier: Apache-2.0
# Licensed to the Ed-Fi Alliance under one or more agreements.
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
# See the LICENSE and NOTICES files in the project root for more information.
name: CodeQL Security Scan
on:
pull_request:
branches:
- main
paths:
- 'edfi-repo-auditor/**/*'
push:
branches:
- main
permissions:
security-events: write
actions: read
attestations: read
checks: read
contents: read
pull-requests: read
statuses: read
jobs:
analyze:
name: Analyze Code
runs-on: ubuntu-latest
defaults:
run:
working-directory: edfi-repo-auditor/
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Poetry
run: pipx install poetry
- name: Install Python 3.9
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.9.x"
cache: "poetry"
- name: Install dependencies
run: poetry env use "3.9" && poetry install
- name: Initialize CodeQL
uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
with:
languages: "python"
setup-python-dependencies: false
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1
with:
category: "/language:python"