Skip to content

checkout@v6 credentials don't work with Docker container actions #2386

@cloud-with-preetham

Description

@cloud-with-preetham

Problem
Credentials passed by checkout are not available inside container-based actions.

The issue where credentials from actions/checkout are not available inside Docker container actions can cause authentication failures when Git commands are executed within the container environment. Since container actions run in an isolated filesystem, the Git credentials configured by the checkout step (such as the GITHUB_TOKEN) are not automatically accessible inside the container. As a result, operations like cloning private repositories, fetching submodules, or accessing private dependencies may fail with authentication errors. This can break CI/CD workflows that rely on container-based tools to perform Git operations after the repository has been checked out.

Possible fix areas:

  • credential propagation
  • environment variable mapping
  • token handling

Open for talks regarding this issue!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions