Skip to content

drone-github-action/action seems to require that the code be cloned even if it is not used #10

Description

@rwc9u

I'm trying to call the GHA configure-aws-credentials in a stage where I have not downloaded my associate code. It's not necessary for the stage. I only want to check if an image exists in an ECR repo and the tag that I want to check is an output from a previous step.

The stage works fine if I clone the repo. However, if I turn off the cloning to try to save some time I get the following:

time=2023-06-21T07:11:40.088Z level=INFO msg="detected github action action.yml"
time="2023-06-21T07:11:40Z" level=warning msg="unable to get git repo: repository does not exist"
time="2023-06-21T07:11:40Z" level=error msg="path/harnessnot located inside a git repository" error="repository does not exist"
time="2023-06-21T07:11:40Z" level=warning msg="unable to get git ref: repository does not exist"
time="2023-06-21T07:11:40Z" level=error msg="path/harnessnot located inside a git repository" error="repository does not exist"
time="2023-06-21T07:11:40Z" level=warning msg="unable to get git revision: repository does not exist"
[drone-github-action/action] unable to get git repo: repository does not exist
[drone-github-action/action] path/harnessnot located inside a git repository
[drone-github-action/action] unable to get git ref: repository does not exist
[drone-github-action/action] path/harnessnot located inside a git repository
[drone-github-action/action] unable to get git revision: repository does not exist
[drone-github-action/action] unable to get git repo: repository does not exist
[drone-github-action/action] path/harnessnot located inside a git repository
[drone-github-action/action] unable to get git ref: repository does not exist
[drone-github-action/action] path/harnessnot located inside a git repository
[drone-github-action/action] unable to get git revision: repository does not exist
[drone-github-action/action]   ☁  git clone 'https://github.com/aws-actions/configure-aws-credentials' # ref=v2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions