Skip to content

Commit 1dd5e34

Browse files
authored
Create powershell-pr-check.yml
1 parent 861ae8a commit 1dd5e34

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

0 commit comments

Comments
 (0)