Skip to content

Supporting additional environment setup steps (pre-planning) #2065

@arusahni

Description

@arusahni

I have a private crate that is included as a Git dep in my project. In order for cargo operations against the project to succeed I have to configure Github Actions to use an access token to pull the repository.

- run: git config --global url."https://x-access-token:${{ secrets.PRIVATE_REPO_ACCESS_TOKEN }}@github.com/".insteadOf "ssh://[email protected]/"

This works as expected in my other CI workflows. However, dists plan phase runs cargo metadata, which requires that repo be cloneable. Unfortunately there doesn't appear to be a hook available that lets me inject this as a prelude to the various jobs in the release workflow. github-build-setup gets close, but that only affects the build-local-artifacts job.

Is there a way to express this with a non-dirty release.yml?

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