Skip to content

Use Dependabot to check for outdated action versions used in workflows #3

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 1 commit into from
Jun 8, 2021

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Jun 8, 2021

Dependabot will periodically check the GitHub Actions workflows and workflow templates of the repository and submit pull
requests to update any that are found to be using an outdated version of an action.

This check has previously been a manual process, and a frequently neglected one. Up to date action versions are
especially important in the workflow templates, since they are the source for the CI systems of many repositories.

Typically, the best approach is to only pin the major version of the action (e.g., uses: foo/bar@v1), so the workflow
will automatically use the latest version of the action except when there have been breaking changes. Many actions
provide major version refs for this purpose.

NOTE: Dependabot's PRs will occasionally try to pin to the patch version of the action (e.g., updating uses: foo/bar@v1
to uses: foo/[email protected]). When the action author has provided a major version ref, use that instead
(e.g., uses: foo/bar@v2). Once the major version has been updated in the workflow, Dependabot should not submit an
update PR again until the next major version bump. So even if the PRs from Dependabot are not always exactly correct,
their value lies in bringing the maintainer's attention to the fact that the action version in use is outdated.
Dependabot will automatically close its PR once the workflow has been updated.

In the case of PRs from Dependabot for updates to the workflow template copies, these serve solely as update
notifications Dependabot has been configured to prefix the PR message with "(DO NOT MERGE)" to make this clear.

I have configured Dependabot to assign me to these pull requests and will take responsibility for reviewing and testing
them.


In addition to setting up Dependabot for this repository, I have also provided a template Dependabot configuration file
and documentation to make it easy to setting this up in other repositories where the maintainers have determined it would
be useful.

@per1234 per1234 added type: enhancement Proposed improvement topic: infrastructure Related to project infrastructure labels Jun 8, 2021
@per1234 per1234 requested review from silvanocerza and rsora June 8, 2021 15:21
Dependabot will periodically check the GitHub Actions workflows and workflow templates of the repository and submit pull
requests to update any that are found to be using an outdated version of an action.

This check has previously been a manual process, and a frequently neglected one. Up to date action versions are
especially important in the workflow templates, since they are the source for the CI systems of many repositories.

Typically, the best approach is to only pin the major version of the action (e.g., `uses: foo/bar@v1`), so the workflow
will automatically use the latest version of the action except when there have been breaking changes. Many actions
provide major version refs for this purpose.

NOTE: Dependabot's PRs will occasionally try to pin to the patch version of the action (e.g., updating `uses: foo/bar@v1`
to `uses: foo/[email protected]`). When the action author has provided a major version ref, use that instead
(e.g., `uses: foo/bar@v2`). Once the major version has been updated in the workflow, Dependabot should not submit an
update PR again until the next major version bump. So even if the PRs from Dependabot are not always exactly correct,
their value lies in bringing the maintainer's attention to the fact that the action version in use is outdated.
Dependabot will automatically close its PR once the workflow has been updated.

In the case of PRs from Dependabot for updates to the workflow template copies, these serve solely as update
notifications Dependabot has been configured to prefix the PR message with "(DO NOT MERGE)" to make this clear.

I have configured Dependabot to assign me to these pull requests and will take responsibility for reviewing and testing
them.

---
In addition to setting up Dependabot for this repository, I have also provided a template Dependabot configuration file
and documentation to make it easy to setting this up in other repositories where the maintainers have determined it would
be useful.
@per1234 per1234 merged commit a01cc3d into main Jun 8, 2021
@per1234 per1234 deleted the dependabot branch June 14, 2021 17:48
@per1234 per1234 self-assigned this Nov 20, 2021
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: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants