File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 3636 version : ' 1.20.0' # Specify your desired azd version here
3737
3838 - name : Setup Node.js
39- uses : actions/setup-node@v5
39+ uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
4040 with :
4141 node-version : ' 18.x'
4242
Original file line number Diff line number Diff line change 2020 # Set this to the mainline branch you are using
2121 branches :
2222 - main
23+ pull_request :
24+ # Run when pull requests are opened or updated
25+ branches :
26+ - main
2327# GitHub Actions workflow to deploy to Azure using azd
24-
2528permissions :
2629 actions : read # Needed for uploading SARIF reports
2730 security-events : write # Needed for uploading SARIF reports
4851 version : ' 1.20.0' # Specify your desired azd version here
4952
5053 - name : Setup Node.js
51- uses : actions/setup-node@v5
54+ uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
5255 with :
5356 node-version : ' 18.x'
5457
@@ -193,7 +196,7 @@ jobs:
193196 sarif_file : ./checkov-results.sarif/results_sarif.sarif
194197
195198 - name : Azd down
196- if : ${{ github.event.inputs.run_azd_down == 'true' }}
199+ if : ${{ github.event.inputs.run_azd_down == 'true' || github.event_name == 'pull_request' }}
197200 env :
198201 POWER_PLATFORM_CLIENT_ID : ${{ vars.AZURE_CLIENT_ID }}
199202 POWER_PLATFORM_TENANT_ID : ${{ vars.AZURE_TENANT_ID }}
Original file line number Diff line number Diff line change 5050 fetch-depth : 0 # Required for proper GitLeaks scanning
5151
5252 - name : Setup Node.js
53- uses : actions/setup-node@v5
53+ uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
5454 with :
5555 node-version : ' 18.x'
5656
You can’t perform that action at this time.
0 commit comments