Skip to content

Commit bf55d97

Browse files
committed
ignore tests in CodeQL scan and add missing permission restrictions
Signed-off-by: gruebel <anton.gruebel@gmail.com>
1 parent 3b6204d commit bf55d97

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.github/codeql-config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: "CodeQL config"
2+
3+
paths-ignore:
4+
- tests

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
branches:
1414
- main
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
build:
1821
runs-on: ubuntu-latest
@@ -64,6 +67,7 @@ jobs:
6467
uses: github/codeql-action/init@v3
6568
with:
6669
languages: python
70+
config-file: ./.github/codeql-config.yml
6771

6872
- name: Install dependencies
6973
run: pip install -r requirements.txt

.github/workflows/lint-pr.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ on:
1212
- edited
1313
- synchronize
1414

15+
permissions:
16+
pull-requests: read
17+
1518
jobs:
1619
main:
1720
name: Validate PR title
1821
runs-on: ubuntu-latest
1922
steps:
2023
- uses: amannn/action-semantic-pull-request@v5
2124
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)