-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
kind/bugSomething isn't workingSomething isn't working
Description
ACTIONS_ID_TOKEN_REQUEST_TOKEN and ACTIONS_ID_TOKEN_REQUEST_URL vars are not set when a pull request is made from a fork: https://github.com/docker/github-builder-experimental/actions/runs/20853632295/job/59914492700#step:6:215
Driver Options: env.ACTIONS_ID_TOKEN_REQUEST_TOKEN="" env.ACTIONS_ID_TOKEN_REQUEST_URL="" image="moby/buildkit:master@sha256:bdefeba47634c596286beabe68219708ed364c4f1a5e4e9a2e160274712a0e89"
ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE=/opt/actionarchivecache
ACTIONS_RUNTIME_URL=https://pipelinesghubeus5.actions.githubusercontent.com/Gn0SFRdzfC2QQgKXjTaZ1iG2iqr70vWtXE5esVcflAtH7dtmQI/
ACTIONS_RUNTIME_TOKEN=***
ACTIONS_CACHE_URL=https://artifactcache.actions.githubusercontent.com/Gn0SFRdzfC2QQgKXjTaZ1iG2iqr70vWtXE5esVcflAtH7dtmQI/
ACTIONS_RESULTS_URL=https://results-receiver.actions.githubusercontent.com/
ACTIONS_CACHE_SERVICE_V2=True
I can't find any documentation about this:
- https://docs.github.com/en/actions/how-tos/secure-your-work/security-harden-deployments/oidc-with-reusable-workflows
- https://docs.github.com/en/actions/concepts/security/openid-connect
- https://docs.github.com/en/actions/reference/security/oidc
But it seems to be the same strategy that is applied to the GITHUB_TOKEN.
That breaks GHA cache with our reusable workflow unfortunately: https://github.com/docker/github-builder-experimental/actions/runs/20853632295/job/59914492700#step:10:343
#16 exporting to GitHub Actions Cache
#16 preparing build cache for export
#16 writing layer sha256:12235759f37b93f211a3e31e2293a471d186598e42a53df9cc3532d232c61876
#16 writing layer sha256:12235759f37b93f211a3e31e2293a471d186598e42a53df9cc3532d232c61876 0.2s done
#16 writing layer sha256:8e62030b6c098dc055738c3b4a87c658c881a152b8b8d6c391db551deeda8bcd
#16 writing layer sha256:8e62030b6c098dc055738c3b4a87c658c881a152b8b8d6c391db551deeda8bcd 0.2s done
#16 signing cache index sha256:7ce6816147a0f2ea5a99992d35dbe90b18b2131fbeb9038df40a08eb7a5041c6
#16 preparing build cache for export 305.1s done
#16 signing cache index sha256:7ce6816147a0f2ea5a99992d35dbe90b18b2131fbeb9038df40a08eb7a5041c6 304.2s done
#16 ERROR: signing command failed: + cosign sign-blob --yes --oidc-provider github-actions --new-bundle-format --use-signing-config --bundle /tmp/tmp.KICOOH '--tlog-upload=false' /tmp/tmp.DHADPH
Non-interactive mode detected, using device flow.
Error: signing /tmp/tmp.DHADPH: retrieving ID token: authenticating caller: error obtaining token: expired_token
error during command execution: signing /tmp/tmp.DHADPH: retrieving ID token: authenticating caller: error obtaining token: expired_token
+ rm -f /tmp/tmp.DHADPH /tmp/tmp.KICOOH
: exit status 1
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't workingSomething isn't working