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

Download action repository called repeatedly for actions that have to be the same #3731

Open
jsoref opened this issue Feb 28, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@jsoref
Copy link
Contributor

jsoref commented Feb 28, 2025

Describe the bug
If an action is used multiple times and the owner or repository name varies in case, then the action will be downloaded multiple times.

As GitHub asserts that owners and repository names are case-insensitive, this is wasteful.

(Note: paths within repositories may be case-sensitive, that's outside the scope of this report.)

To Reproduce
Steps to reproduce the behavior:

  1. Create a workflow that uses an action multiple times where the owner/repository name differ only by case -- https://github.com/check-spelling-sandbox/animated-umbrella/actions/runs/13579366005/workflow
  2. Trigger the workflow
  3. Look at the Set up job section of the workflow run for Getting action download info and Download action repository...

Expected behavior

  • Possibly a warning to the job log (::notice ::action requested by multiple cases <...>)
  • The action should only be downloaded once

Runner Version and Platform

Version of your runner? 2.322.0

OS of the machine running the runner? Linux

What's not working?

The runner is needlessly downloading multiple copies of an action that it can know to be identical.

Job Log Output

Getting action download info
Download action repository 'actions/checkout@v4' (SHA:11bd71901bbe5b1630ceea73d27597364c9af683)
Download action repository 'actIONS/checkout@v4' (SHA:11bd71901bbe5b1630ceea73d27597364c9af683)
Download action repository 'actions/CHECKout@v4' (SHA:11bd71901bbe5b1630ceea73d27597364c9af683)
Download action repository 'aCTions/checkout@v4' (SHA:11bd71901bbe5b1630ceea73d27597364c9af683)
Download action repository 'actions/checKOut@v4' (SHA:11bd71901bbe5b1630ceea73d27597364c9af683)
Download action repository 'actIONS/cHECkout@v4' (SHA:11bd71901bbe5b1630ceea73d27597364c9af683)
Complete job name: checkout

Runner and Worker's Diagnostic Logs

https://github.com/check-spelling-sandbox/animated-umbrella/actions/runs/13579439266/job/37962625594#step:1:25


For comparison, here's a workflow run where the same action is used multiple times, each time w/ the same case. Note that it only downloads the action repository once:
https://github.com/check-spelling-sandbox/animated-umbrella/actions/runs/13579366005/job/37962422085

@jsoref jsoref added the bug Something isn't working label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant