Skip to content

Commit 4bb76a4

Browse files
authored
Change container image and add credentials in workflow
Updated the container image and added credentials for GitHub actions.
1 parent 2cffbce commit 4bb76a4

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,21 @@ jobs:
1717
run:
1818
shell: bash
1919
container:
20-
image: mcr.microsoft.com/devcontainers/base:ubuntu-24.04
21-
volumes:
22-
- ${{ github.workspace }}:${{ github.workspace }}
23-
options: --device=/dev/mem --device=/dev/dri --group-add video --group-add 991 --security-opt seccomp=unconfined --cap-add=SYS_PTRACE --shm-size=8g
24-
-e ZE_AFFINITY_MASK
25-
--user 0:0
20+
image: ghcr.io/emmtrix/llvm-cpp2c-build-test:latest
21+
credentials:
22+
username: ${{ github.actor }}
23+
password: ${{ secrets.GITHUB_TOKEN }}
24+
# Copilot's helper scripts still resolve through host-style
25+
# /home/runner/_work/_temp/... paths even when a job container is active.
26+
# Keep the bind mount narrow so the container does not shadow the rest of
27+
# /home/runner while we test whether session-log streaming returns.
28+
options: --volume /home/runner/_work:/home/runner/_work
29+
30+
# Set minimal permissions for setup steps.
31+
# Copilot Agent receives its own token with appropriate permissions.
32+
permissions:
33+
contents: read
34+
packages: read
2635

2736
permissions:
2837
contents: read

0 commit comments

Comments
 (0)