Skip to content

Commit 787a7b6

Browse files
authored
Update CodeQL workflow with npm and env settings
1 parent 08f4857 commit 787a7b6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/codeql.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,13 @@ jobs:
5555
- name: Install npm@9
5656
run: npm i -g npm@9
5757

58-
- name: Build and test
59-
run: npm run build
58+
- name: Build and test
59+
run: |
60+
npm config set //npm.pkg.github.com/:_authToken=${{ secrets.GPR_ACCESS_TOKEN }}
61+
npm ci
62+
npm run ci
63+
env:
64+
AZ_DevOps_Read_PAT: ${{ secrets.AZ_DevOps_Read_PAT }}
6065

6166
- name: Perform CodeQL Analysis
6267
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)