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

Bump the github-actions group with 6 updates #1362

Merged
merged 3 commits into from
May 8, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 7, 2024

Bumps the github-actions group with 6 updates:

Package From To
actions/checkout 3 4
extractions/setup-just 1 2
actions/upload-artifact 3 4
dtolnay/rust-toolchain 1.67.0 1.80.0
actions/download-artifact 3 4
actions/upload-release-asset 1.0.1 1.0.2

Updates actions/checkout from 3 to 4

Release notes

Sourced from actions/checkout's releases.

v4.0.0

What's Changed

New Contributors

Full Changelog: actions/checkout@v3...v4.0.0

v3.6.0

What's Changed

New Contributors

Full Changelog: actions/checkout@v3.5.3...v3.6.0

v3.5.3

What's Changed

New Contributors

Full Changelog: actions/checkout@v3...v3.5.3

v3.5.2

What's Changed

Full Changelog: actions/checkout@v3.5.1...v3.5.2

v3.5.1

What's Changed

New Contributors

... (truncated)

Changelog

Sourced from actions/checkout's changelog.

Changelog

v4.1.4

v4.1.3

v4.1.2

v4.1.1

v4.1.0

v4.0.0

v3.6.0

v3.5.3

v3.5.2

v3.5.1

v3.5.0

v3.4.0

... (truncated)

Commits

Updates extractions/setup-just from 1 to 2

Commits

Updates actions/upload-artifact from 3 to 4

Release notes

Sourced from actions/upload-artifact's releases.

v4.0.0

What's Changed

The release of upload-artifact@v4 and download-artifact@v4 are major changes to the backend architecture of Artifacts. They have numerous performance and behavioral improvements.

ℹ️ However, this is a major update that includes breaking changes. Artifacts created with versions v3 and below are not compatible with the v4 actions. Uploads and downloads must use the same major actions versions. There are also key differences from previous versions that may require updates to your workflows.

For more information, please see:

  1. The changelog post.
  2. The README.
  3. The migration documentation.
  4. As well as the underlying npm package, @​actions/artifact documentation.

New Contributors

Full Changelog: actions/upload-artifact@v3...v4.0.0

v3.1.3

What's Changed

Full Changelog: actions/upload-artifact@v3...v3.1.3

v3.1.2

  • Update all @actions/* NPM packages to their latest versions- #374
  • Update all dev dependencies to their most recent versions - #375

v3.1.1

  • Update actions/core package to latest version to remove set-output deprecation warning #351

v3.1.0

What's Changed

Commits
  • 6546280 updating package version
  • c004fb4 Merge branch 'main' into eggyhead/use-artifact-v2.1.6
  • 90aba49 updating toolkit artifact dependency to 2.1.6
  • b06cde3 Merge pull request #563 from actions/eggyhead/release-4.3.2
  • 1746f4a Revert "updating to release 4.3.2"
  • 31685d0 updating to release 4.3.2
  • 18bf333 Merge pull request #562 from actions/eggyhead/update-artifact-v215
  • dac413b update package lock version
  • bb3b4a3 updating package version
  • 3e3da83 updating artifact and core dependencies
  • Additional commits viewable in compare view

Updates dtolnay/rust-toolchain from 1.67.0 to 1.80.0

Commits

Updates actions/download-artifact from 3 to 4

Release notes

Sourced from actions/download-artifact's releases.

v4.0.0

What's Changed

The release of upload-artifact@v4 and download-artifact@v4 are major changes to the backend architecture of Artifacts. They have numerous performance and behavioral improvements.

ℹ️ However, this is a major update that includes breaking changes. Artifacts created with versions v3 and below are not compatible with the v4 actions. Uploads and downloads must use the same major actions versions. There are also key differences from previous versions that may require updates to your workflows.

For more information, please see:

  1. The changelog post.
  2. The README.
  3. The migration documentation.
  4. As well as the underlying npm package, @​actions/artifact documentation.

New Contributors

Full Changelog: actions/download-artifact@v3...v4.0.0

v3.0.2

v3.0.1

Commits
  • 65a9edc Merge pull request #325 from bethanyj28/main
  • fdd1595 licensed
  • c13dba1 update @​actions/artifact dependency
  • 0daa75e Merge pull request #324 from actions/eggyhead/use-artifact-v2.1.6
  • 9c19ed7 Merge branch 'main' into eggyhead/use-artifact-v2.1.6
  • 3d3ea87 updating license
  • 89af5db updating artifact package v2.1.6
  • b4aefff Merge pull request #323 from actions/eggyhead/update-artifact-v215
  • 8caf195 package lock update
  • d7a2ec4 updating package version
  • Additional commits viewable in compare view

Updates actions/upload-release-asset from 1.0.1 to 1.0.2

Release notes

Sourced from actions/upload-release-asset's releases.

Automate sliding major version number

This is a minor update to make the current release have the latest code from master, and additionally allows for a new automation workflow to execute to automate the sliding of the major (v1, v2, v3, etc) version numbers for ease of referencing

Commits
  • e8f9f06 Merge pull request #27 from actions/IAmHughes/add-automated-versioning
  • 1418754 Add versioning action to automatically slide major versions with releases
  • 7d8fb6c Merge pull request #6 from actions/IAmHughes/fix-link-to-license
  • c53f077 Fix link to LICENSE
  • 72e8a5e Merge pull request #5 from cesperanc/documentation-update
  • bf2a7fb Update example to use the fixed version
  • See full diff in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label May 7, 2024
@Byron
Copy link
Member

Byron commented May 7, 2024

@dependabot rebase main

Bumps the github-actions group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `3` | `4` |
| [extractions/setup-just](https://github.com/extractions/setup-just) | `1` | `2` |
| [actions/upload-artifact](https://github.com/actions/upload-artifact) | `3` | `4` |
| [dtolnay/rust-toolchain](https://github.com/dtolnay/rust-toolchain) | `1.67.0` | `1.80.0` |
| [actions/download-artifact](https://github.com/actions/download-artifact) | `3` | `4` |
| [actions/upload-release-asset](https://github.com/actions/upload-release-asset) | `1.0.1` | `1.0.2` |


Updates `actions/checkout` from 3 to 4
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3...v4)

Updates `extractions/setup-just` from 1 to 2
- [Release notes](https://github.com/extractions/setup-just/releases)
- [Commits](extractions/setup-just@v1...v2)

Updates `actions/upload-artifact` from 3 to 4
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v3...v4)

Updates `dtolnay/rust-toolchain` from 1.67.0 to 1.80.0
- [Release notes](https://github.com/dtolnay/rust-toolchain/releases)
- [Commits](dtolnay/rust-toolchain@1.67.0...1.80.0)

Updates `actions/download-artifact` from 3 to 4
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@v3...v4)

Updates `actions/upload-release-asset` from 1.0.1 to 1.0.2
- [Release notes](https://github.com/actions/upload-release-asset/releases)
- [Commits](actions/upload-release-asset@v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: extractions/setup-just
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: dtolnay/rust-toolchain
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/upload-release-asset
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/github_actions/github-actions-995368d36e branch from 45edd48 to a64d015 Compare May 7, 2024 19:39
.github/workflows/msrv.yml Outdated Show resolved Hide resolved
If this doesn't work, so it happens once per week now, better replace it with rustup invocations.
EliahKagan added a commit to EliahKagan/gitoxide that referenced this pull request May 7, 2024
When `dtolnay/rust-toolchain` is a tag, it specifies a particular
version of the actual Rust toolchain to use. It is also sometimes
used with a branch such as `master` (to then specify the version as
an option rather than in the action version) or `stable`, but
branches are ineligible for Dependabot version updates and also
would not ordinarily require them since they move much more often
than tags.

Therefore, this tells Dependabot to ignore `dtolnay/rust-toolchain`
for the purpose of version updates. As commented, this is done in a
way that *should* avoid causing it to be ignored for security
updates.

Old Rust toolchains may have known vulnerabilities but still be
safe to use on CI based on a consideration of the risks (for
triggers such as `push` and `pull_request` that run with the same
privileges of the user who can cause the triggering event to
occur), and I believe the action itself does not get advisories for
those versions. But it is possible that at some point in the future
a vulnerability might be discovered in the action itself and an
advisory produced for it, so having Dependabot be able to show any
such advisory and, if enabled, produce a security update PR for it
automatically is still valuable.

Ignoring `dtolnay/rust-toolchain` addresses the problem identified
in GitoxideLabs#1362 (review)
without requiring any decreased use of actions to install
dependencies, modification of how the actions' versions or options
are given, or `@dependabot` ignore commands.
EliahKagan added a commit to EliahKagan/gitoxide that referenced this pull request May 7, 2024
When `dtolnay/rust-toolchain` is a tag, it specifies a particular
version of the actual Rust toolchain to use. It is also sometimes
used with a branch such as `master` (to then specify the version as
an option rather than in the action version) or `stable`, but
branches are ineligible for Dependabot version updates and also
would not ordinarily require them since they move much more often
than tags.

Therefore, this tells Dependabot to ignore `dtolnay/rust-toolchain`
for the purpose of version updates. As commented, this is done in a
way that *should* avoid causing it to be ignored for security
updates.

Old Rust toolchains may have known vulnerabilities but still be
safe to use on CI based on a consideration of the risks (for
triggers such as `push` and `pull_request` that run with the same
privileges of the user who can cause the triggering event to
occur), and I believe the action itself does not get advisories for
those versions. But it is possible that at some point in the future
a vulnerability might be discovered in the action itself and an
advisory produced for it, so having Dependabot be able to show any
related alert and, if enabled, produce a security update PR for it
automatically is still valuable.

Ignoring `dtolnay/rust-toolchain` addresses the problem identified
in GitoxideLabs#1362 (review)
without requiring any decreased use of actions to install
dependencies, modification of how the actions' versions or options
are given, or `@dependabot` ignore commands.
Copy link
Member

@EliahKagan EliahKagan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although this looks good and could be merged immediately, I've opened #1364 to make it so Dependabot no longer attempts to update dtolnay/rust-toolchain. As detailed there, the easiest and most robust way to verify the effect of that change may involve merging that PR before this one.

Relating to the message (but not diff) of cd6d578, please note that, even if for some reason #1364 were not to be merged, it should not be necessary to use actions less extensively to install toolchains or any other dependencies, because there are two other ways to keep Dependabot from attempting to upgrade that dependency (they are listed in that PR description, among the list of things that PR, if merged, will make it unnecessary to do).

@Byron
Copy link
Member

Byron commented May 8, 2024

Thank you!

I actually plan to remove this action entirely in favor of plain rustup calls, so probably won't end up merging #1364.

@Byron Byron force-pushed the dependabot/github_actions/github-actions-995368d36e branch 2 times, most recently from 17d0d01 to ca58484 Compare May 8, 2024 05:33
Using it when availble as standard tool seems preferable over using an action
that potentially hides away what's truly going on (after all, it also calls `rustup`
under the hood)
@Byron Byron force-pushed the dependabot/github_actions/github-actions-995368d36e branch from ca58484 to c97ee27 Compare May 8, 2024 05:33
@EliahKagan
Copy link
Member

EliahKagan commented May 8, 2024

Thank you!

I actually plan to remove this action entirely in favor of plain rustup calls, so probably won't end up merging #1364.

Sounds good.

I hope Dependabot is not the reason for replacing that action, since even if you don't want the changes from #1364 in the configuration, Dependabot can be told to ignore updates with @dependabot ignore, or the steps that use it can be written differently to specify master as the ref and to request the toolchain version in an option passed under with:. But I would guess that this is not the reason for switching to explicit rustup calls.

Regardless of the reason, I will go ahead and close #1364 if it is still open after this PR is merged--because this PR contains c97ee27 which makes it unnecessary--unless you indicate that it should remain open. (And of course I have no objection to you closing it, if you like!)

@Byron Byron merged commit 4ca7094 into main May 8, 2024
19 checks passed
@dependabot dependabot bot deleted the dependabot/github_actions/github-actions-995368d36e branch May 8, 2024 06:38
@Byron
Copy link
Member

Byron commented May 8, 2024

But I would guess that this is not the reason for switching to explicit rustup calls.

It's a long-standing issue of over-abstraction and I thought it was a fruit hanging low enough to tackle now, as a form of warmup.

Please also note that Windows was subtly broken, but that's fixed in 91b6549 which lives in this PR - it's my work-PR that captures feature-goals but is also often used to contain smaller fixes which may be merged back occasionally. I should probably use that less in favor of separate PRs now.

@EliahKagan
Copy link
Member

Thanks for clarification regarding rustup. This makes sense.

For the Windows breakage, at least in this instance, I'm not aware of any reason having the fix for in that PR would be a problem, at least for anything I'm working on. But I understand having separate PRs for such things does have benefits.

I have an idea about that though, which might potentially lead to an alternative fix. So I've commented #1363 (comment) about that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants