Skip to content

Commit 36d8f75

Browse files
authored
ci: update azd validation workflow (#205)
1 parent 6310dfb commit 36d8f75

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/azure-dev-validation.yaml

+5-3
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ on:
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
15+
permissions:
16+
security-events: write
1517
steps:
1618
- name: Checkout
1719
uses: actions/checkout@v4
1820

1921
- name: Build Bicep for linting
20-
uses: azure/CLI@v1
22+
uses: azure/CLI@v2
2123
with:
2224
inlineScript: az config set bicep.use_binary_from_path=false && az bicep build -f infra/main.bicep --stdout
2325

@@ -29,7 +31,7 @@ jobs:
2931
tools: templateanalyzer
3032

3133
- name: Upload alerts to Security tab
32-
if: github.repository == 'Azure-Samples/azure-search-openai-javascript'
33-
uses: github/codeql-action/upload-sarif@v2
34+
if: github.repository_owner == 'Azure-Samples'
35+
uses: github/codeql-action/upload-sarif@v3
3436
with:
3537
sarif_file: ${{ steps.msdo.outputs.sarifFile }}

0 commit comments

Comments
 (0)