Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:

- name: Preload pinned Python
if: matrix.task == 'checks'
env:
GITHUB_TOKEN: ${{ github.token }}
run: ./scripts/setup-ci-python.sh "$PYTHON_VERSION"

- name: Set up stable Python
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/guest-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
- name: Cache pinned quality build dependencies
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7.4.0
with:
secrets: github_token=${{ github.token }}
context: .
file: packaging/guest/Dockerfile
platforms: linux/amd64
Expand All @@ -76,8 +77,11 @@ jobs:
outputs: type=cacheonly

- name: Run fresh quality checks
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
docker buildx build \
--secret "id=github_token,env=GITHUB_TOKEN" \
--no-cache-filter quality \
--platform linux/amd64 \
--build-arg CARGO_BUILD_JOBS=2 \
Expand Down Expand Up @@ -114,8 +118,11 @@ jobs:
chmod 0400 "$RUNNER_TEMP/guest-artifact-ci.key"

- name: Build independent bundle without cache
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
docker buildx build \
--secret "id=github_token,env=GITHUB_TOKEN" \
--no-cache \
--platform "linux/${{ matrix.architecture }}" \
--build-arg CARGO_BUILD_JOBS=2 \
Expand All @@ -127,8 +134,11 @@ jobs:

- name: Export OCI layout from the same build
if: matrix.attempt == 'first'
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
docker buildx build \
--secret "id=github_token,env=GITHUB_TOKEN" \
--platform "linux/${{ matrix.architecture }}" \
--build-arg CARGO_BUILD_JOBS=2 \
--target image \
Expand Down Expand Up @@ -272,8 +282,11 @@ jobs:
clang libelf-dev libzstd-dev make pkg-config zlib1g-dev

- name: Export architecture-specific BPF object
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
docker build \
--secret "id=github_token,env=GITHUB_TOKEN" \
--no-cache \
--platform "linux/${{ matrix.platform }}" \
--target bpf-artifact \
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/guest-supervisor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ jobs:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Run pinned quality environment
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
docker build \
--secret "id=github_token,env=GITHUB_TOKEN" \
--no-cache \
--build-arg CARGO_BUILD_JOBS=2 \
--file guest/sendbox-guest/Dockerfile \
Expand All @@ -69,9 +72,12 @@ jobs:
driver-opts: image=moby/buildkit:buildx-stable-1@sha256:2f5adac4ecd194d9f8c10b7b5d7bceb5186853db1b26e5abd3a657af0b7e26ec

- name: Build twice without cache
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
for attempt in first second; do
docker buildx build \
--secret "id=github_token,env=GITHUB_TOKEN" \
--no-cache \
--platform "linux/${{ matrix.architecture }}" \
--build-arg CARGO_BUILD_JOBS=2 \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ jobs:
- name: Build signed reproducible guest bundle
shell: bash
env:
GITHUB_TOKEN: ${{ github.token }}
VERSION: ${{ github.ref_name }}
run: |
set -euo pipefail
Expand All @@ -162,6 +163,7 @@ jobs:
fi

docker buildx build \
--secret "id=github_token,env=GITHUB_TOKEN" \
--no-cache \
--platform "linux/${{ matrix.platform }}" \
--target artifact \
Expand Down
26 changes: 14 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ controls must be ready before the agent starts. An unavailable provider or
unsupported capability is an error, **not a fallback to running on the host**.

Network grants support explicit subdomain wildcards. On Apple and Kata, an exact
`github.com` grant also includes periodically refreshed official GitHub Meta
domains and IPv4/IPv6 CIDRs, including shared-cloud ranges. See
`github.com` grant also includes official GitHub Meta domains and IPv4/IPv6
CIDRs, including shared-cloud ranges. The host caches them for all sessions and
revalidates at most hourly, keeping within GitHub's anonymous rate limit. See
[network scope, outages, and provenance](docs/configuration.md#network-grants).

## Supported coding agents
Expand Down
Loading
Loading