Skip to content

Commit 6d70f66

Browse files
authored
🚀 Improve Code Analysis (#390)
- Allow to write to security events - Allow fast-fail to ensure all code testing is run - Allow read actions and contents for code analysis - Add to schedule every monday - Ensure dispatch can run - Ensure branches specifically target main, releases, and integration branches
1 parent 6577615 commit 6d70f66

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: Validate Pull Request
22

3-
on: [pull_request, repository_dispatch]
3+
on:
4+
push:
5+
branches: [main, "integration/**", "releases/**"]
6+
pull_request:
7+
branches: [main, "integration/**", "releases/**"]
8+
repository_dispatch:
9+
types: [pull_request]
10+
schedule:
11+
- cron: "30 23 * * 1" # 2330 UTC Every Monday
412

513
env:
614
PYTHON_VERSION: 3.8
@@ -11,6 +19,14 @@ jobs:
1119
code_analysis:
1220
name: Code Analysis
1321
runs-on: ubuntu-latest
22+
permissions:
23+
actions: read
24+
contents: read
25+
security-events: write
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
language: ["python"]
1430
steps:
1531
- name: Checkout Code
1632
uses: actions/checkout@v2
@@ -32,7 +48,7 @@ jobs:
3248
- name: Initialize CodeQL
3349
uses: github/codeql-action/init@v1
3450
with:
35-
languages: python
51+
languages: ${{ matrix.language }}
3652
- name: Autobuild
3753
uses: github/codeql-action/autobuild@v1
3854
- name: Perform CodeQL Analysis

0 commit comments

Comments
 (0)