Skip to content

Correct "setup-licensed" action ref in dependencies license check workflow #464

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

Merged
merged 2 commits into from
Mar 2, 2025

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Mar 2, 2025

This GitHub Actions action is used by the "Check Go Dependencies" workflow to install the "Licensed" tool in the runner workspace. At the time the workflow was developed, the action was owned by GitHub user jonabc, and so the action was referenced as jonabc/setup-licensed in the workflow.

Since that time, the action was transferred to the github GitHub organization:

https://github.com/github/setup-licensed

Making things more confusing is the fact that there is now a development fork of the github/setup-licensed repository under GitHub user jonabc's account, meaning that the redirect GitHub provides from the old to the new repository after a transfer does not exist for this action. This resulted in the workflow referencing an outdated copy of the action not intended for production use.

The workflow is hereby updated to use the latest version of the canonical "github/setup-licensed" action.

per1234 added 2 commits March 1, 2025 19:51
…eck workflow

This GitHub Actions action is used by the dependencies license check workflow to install the "Licensed" tool in the
runner workspace. At the time the workflow was developed, the action was owned by GitHub user `jonabc`, and so the
action was referenced as `jonabc/setup-licensed` in the workflow.

Since that time, the action was transferred to the `github` GitHub organization. Making things more confusing is the
fact that GitHub user `jonabc` now has a development fork of the `github/setup-licensed` repository, meaning that the
redirect GitHub provides from the old to the new repository after a transfer does not exist for this action. This
resulted in the workflow referencing an outdated copy of the action not intended for production use.

The workflow is hereby updated to use the canonical "github/setup-licensed" action.
This "github/setup-licensed" action is used by the dependencies license check workflow to install the "Licensed" tool in
the runner machine.

Previously the `v1` major version ref of the action was specified in the workflow. This approach is used in order to
allow the workflow to automatically always use the latest minor version of the action, only requiring the project
maintainers to perform a bump of the action after each major version release.

In a competently maintained action project, the major version ref will be updated after each release within that major
version series so that it always points to the latest release version. Unfortunately that was not done by the
"github/setup-licensed" action maintainers. This means that the use of the `v1` ref in the workflow causes an outdated
version of the action to be used. This has been reported to the action maintainers, but unfortunately instead of fixing
the problem they archived the repository, so there is no hope of it being resolved.

The solution is to replace the major version ref with the ref for the latest release tag. This won't result in an
increased maintenance burden because the action repository is archived and thus there won't be any bumps.
@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: infrastructure Related to project infrastructure labels Mar 2, 2025
@per1234 per1234 self-assigned this Mar 2, 2025
@per1234 per1234 merged commit 35d5a95 into arduino:main Mar 2, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant