File tree Expand file tree Collapse file tree 2 files changed +36
-3
lines changed Expand file tree Collapse file tree 2 files changed +36
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : PowerShell PR Check
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+ paths :
8
+ - " powershell/**"
9
+ workflow_dispatch :
10
+
11
+ jobs :
12
+ powershell-pr-check :
13
+ name : powershell-pr-check
14
+ runs-on : ubuntu-latest
15
+ if : github.repository == 'microsoft/codeql'
16
+ permissions :
17
+ contents : write
18
+ steps :
19
+ - name : Checkout
20
+ uses : actions/checkout@v3
21
+ with :
22
+ fetch-depth : 0
23
+ token : ${{ secrets.WORKFLOW_TOKEN }}
24
+ - name : Setup CodeQL
25
+ uses : ./.github/actions/fetch-codeql
26
+ - name : Compile PowerShell Queries
27
+ run : |
28
+ codeql query compile --check-only --keep-going powershell/ql/src
Original file line number Diff line number Diff line change @@ -21,17 +21,22 @@ jobs:
21
21
run : |
22
22
git config user.name Dilan Bhalla
23
23
git config user.email [email protected]
24
- - name : Fetch
24
+ - name : Sync Main
25
25
shell : bash
26
26
run : |
27
27
set -x
28
28
git fetch
29
29
git remote add upstream https://github.com/github/codeql.git
30
30
git fetch upstream --tags --force
31
- - name : Sync Main
31
+ git merge codeql-cli/latest
32
+ - name : Setup CodeQL
33
+ uses : ./.github/actions/fetch-codeql
34
+ - name : Compile PowerShell Queries
35
+ run : |
36
+ codeql query compile --check-only --keep-going powershell/ql/src
37
+ - name : Complete Sync
32
38
shell : bash
33
39
run : |
34
- git merge codeql-cli/latest
35
40
git push origin main
36
41
git push origin --tags --force
37
42
You can’t perform that action at this time.
0 commit comments