You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately secret is only working for env variables.
I tried to use all different types of secret.
What works is the env var:
export GITHUB_API_TOKEN=my-working-token
dagger call --mod github.com/aweris/daggerverse/[email protected] run --token=env:GITHUB_API_TOKEN --cmd="issue list --repo=dagger/dagger" stdout
When I try to use it with cmd, it fails:
dagger call --mod github.com/aweris/daggerverse/[email protected] run --token=cmd:"echo $GITHUB_API_TOKEN" --cmd="issue list --repo=dagger/dagger" stdout
Error: response from query: input: container.from.withFile.withEntrypoint.withEnvVariable.withEnvVariable.withSecretVariable.withExec.stdout resolve: process "sh -c /usr/local/bin/gh issue list --repo=dagger/dagger" did not complete successfully: exit code: 1
Stderr:
Post "https://api.github.com/graphql": net/http: invalid header field value for "Authorization"
Same for reading the secret from file:
echo $GITHUB_API_TOKEN > .my-token
dagger call --mod github.com/aweris/daggerverse/[email protected] run --token=file:./.my-token --cmd="issue list --repo=dagger/dagger" stdout
It fails with the same error as cmd.
The text was updated successfully, but these errors were encountered:
Unfortunately secret is only working for env variables.
I tried to use all different types of secret.
What works is the env var:
When I try to use it with cmd, it fails:
Same for reading the secret from file:
It fails with the same error as cmd.
The text was updated successfully, but these errors were encountered: