Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use oidc-user and oidc-token to run actions in a container #219

Open
sethamclean opened this issue Sep 23, 2024 · 0 comments
Open

Use oidc-user and oidc-token to run actions in a container #219

sethamclean opened this issue Sep 23, 2024 · 0 comments
Labels
question Further information is requested

Comments

@sethamclean
Copy link

How can we help?

What is the expected way to run a github action in a container from an artifactory private registry using OIDC authentication? As far as I can tell the credentials need to be provided prior to any steps being executed and secrets can't be passed between jobs.

hello-from-container:
   runs-on: ubuntu-latest
   needs: login-via-oidc
   container:
     image: ${{ env.registry }}/ubuntu:latest
     credentials:
       username: "${{ needs.login-via-oidc.outputs.docker_user }}"
       password: "${{ needs.login-via-oidc.outputs.docker_pass }}"
   steps:
     - name: hello
       run: |
         "echo hello"
@sethamclean sethamclean added the question Further information is requested label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant