Skip to content

Commit cfcb3f1

Browse files
committed
Devcontainer job updates
1 parent f494f45 commit cfcb3f1

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/devcontainer.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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

1819
env:
1920
image_tag: devcontainer:${{ github.head_ref || github.run_id }}
@@ -22,6 +23,11 @@ jobs:
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
@@ -44,6 +50,8 @@ jobs:
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

0 commit comments

Comments
 (0)