File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ concurrency:
1313 group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1414 cancel-in-progress : true
1515
16- permissions : read-all
16+ permissions :
17+ contents : read
1718
1819env :
1920 image_tag : devcontainer:${{ github.head_ref || github.run_id }}
2223 build :
2324 name : Build
2425 runs-on : ubuntu-latest
26+ permissions :
27+ contents : write
28+ packages : read
29+ actions : read
30+
2531 steps :
2632 - name : Harden the runner (Audit all outbound calls)
2733 uses : step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
4450 docker buildx build .devcontainer/ubuntu-24.04/ --tag "${{ env.image_tag }}" --label "runnumber=${{ github.run_id }}" --load
4551
4652 - uses : addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185 # v3
53+ env :
54+ GITHUB_TOKEN : ${{ github.token }}
4755 with :
4856 image : ${{ env.image_tag }}
4957 options : -v ${{ github.workspace }}:/workspace -e GITHUB_TOKEN
You can’t perform that action at this time.
0 commit comments