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

Actions: skip unsupported uses strings #8026

Merged
merged 4 commits into from
Sep 13, 2023

Conversation

jakecoffman
Copy link
Member

This fixes a bug where if you name the local reusable workflow with an @ then the path is parsed wrong.

For example with ./.github/workflows/test.yml@v2.1.0. The code expects either <owner>/<repo>@<version> or ./.github/<path>, but this parsed as ./.github/<path>@<version> which is wrong since the @v2.1.0 is just a part of the path. Thus we ended up with a dependency of owner: '.github' which broke the update when fetching the remote file.

Since we currently don't support updating the dependencies of local paths in this way, and also we don't support updating docker:// workflows either, I'm explicitly skipping them for now to avoid any other latent issues.

Conveniently there was a TODO that I could put this skip right after 😄.

@jakecoffman jakecoffman requested a review from a team as a code owner September 13, 2023 15:32
@github-actions github-actions bot added the L: github:actions GitHub Actions label Sep 13, 2023
@jakecoffman jakecoffman merged commit 6dc3ee9 into main Sep 13, 2023
114 checks passed
@jakecoffman jakecoffman deleted the jakecoffman/github-actions-at-in-path branch September 13, 2023 17:08
brettfo pushed a commit to brettfo/dependabot-core that referenced this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: github:actions GitHub Actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants