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

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

Open
rwc9u opened this issue Jun 21, 2023 · 0 comments

Comments

@rwc9u
Copy link

rwc9u commented Jun 21, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant