Skip to content

Commit

Permalink
Set up permissions to download run artifacts (Azure#9240)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-c-martin committed Dec 8, 2022
1 parent d6f8b33 commit 267d104
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/run-compile-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,30 @@ on:
description: 'GH Actions Run Id for the version of Bicep to use'
required: true

permissions:
actions: read

jobs:
run-benchmarks:
name: Compile Samples
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
submodules: true

- name: Fetch Bicep
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
gh run download ${{ github.event.inputs.run_id }} -n bicep-release-linux-x64 -D /tmp/bicep-release-linux-x64
chmod +x /tmp/bicep-release-linux-x64/bicep
- name: Compile Sample Files
env:
GITHUB_TOKEN: ${{ github.token }}
run: ./scripts/compile_samples.sh /tmp/bicep-release-linux-x64/bicep > results.txt

- name: Upload Results
Expand Down

0 comments on commit 267d104

Please sign in to comment.