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

build(deps): bump EmbarkStudios/cargo-deny-action from 1 to 2 in the github-actions group #3845

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 2, 2024

Bumps the github-actions group with 1 update: EmbarkStudios/cargo-deny-action.

Updates EmbarkStudios/cargo-deny-action from 1 to 2

Release notes

Sourced from EmbarkStudios/cargo-deny-action's releases.

Release 2.0.0 - cargo-deny 0.16.0

Action

Added

Changed

  • This release includes breaking changes in cargo-deny, so this release begins the v2 tag, using v1 will be stable but not follow future cargo-deny releases.

cargo-deny

Removed

  • PR#681 finished the deprecation introduced in PR#611, making the usage of the deprecated fields into errors.

[advisories]

The following fields have all been removed in favor of denying all advisories by default. To ignore an advisory the ignore field can be used as before.

  • vulnerability - Vulnerability advisories are now deny by default
  • unmaintained - Unmaintained advisories are now deny by default
  • unsound - Unsound advisories are now deny by default
  • notice - Notice advisories are now deny by default
  • severity-threshold - The severity of vulnerabilities is now irrelevant

[licenses]

The following fields have all been removed in favor of denying all licenses that are not explicitly allowed via either allow or exceptions.

  • unlicensed - Crates whose license(s) cannot be confidently determined are now always errors. The clarify field can be used to help cargo-deny determine the license.
  • allow-osi-fsf-free - The OSI/FSF Free attributes are now irrelevant, only whether it is explicitly allowed.
  • copyleft - The copyleft attribute is now irrelevant, only whether it is explicitly allowed.
  • default - The default is now deny.
  • deny - All licenses are now denied by default, this field added nothing.

Changed

  • PR#685 follows up on PR#673, moving the fields that were added to their own separate bans.workspace-dependencies section. This is an unannounced breaking change but is fairly minor and 0.15.0 was never released on github actions so the amount of people affected by this will be (hopefully) small. This also makes the workspace duplicate detection off by default since the field is optional, but makes it so that if not specified workspace duplicates are now deny instead of warn.

Fixed

  • PR#685 resolved #682 by adding the include-path-dependencies field, allowing path dependencies to be ignored if it is false.

Release 1.6.3 - cargo-deny 0.14.21

Fixed

  • PR#643 resolved #629 by making the hosted git (github, gitlab, bitbucket) org/user name comparison case-insensitive. Thanks @​pmnlla!
  • PR#649 fixed an issue where depending on the same crate multiple times by using different cfg()/triple targets could cause features to be resolved incorrectly and thus crates to be not pulled into the graph used for checking.

[0.14.20] - 2024-03-23

Fixed

  • PR#642 resolved #641 by pinning gix-transport (and its unique dependencies) to 0.41.2 as a workaround for cargo install not using the lockfile. See this issue for more information.

Release 1.6.2 - cargo-deny 0.14.19

Changed

  • PR#639 updated tame-index to avoid an error if you don't used --locked.

... (truncated)

Commits

Dependabot compatibility score

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 dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Aug 2, 2024
@dependabot dependabot bot force-pushed the dependabot/github_actions/github-actions-c4bcf5a8e2 branch from c927a7e to 35b04c9 Compare August 3, 2024 22:19
@daxpedda daxpedda force-pushed the dependabot/github_actions/github-actions-c4bcf5a8e2 branch from 769cb92 to f06cc16 Compare August 4, 2024 00:09
@daxpedda
Copy link
Member

daxpedda commented Aug 4, 2024

While I was fixing it so it works again, I've significantly refreshed our current deny.toml.

  • Added atomics target feature to wasm32-unknown-unknown, which also includes more dependencies.
  • Excluded dev-dependencies.
  • Increased our confidence-threshold to 1.0.
  • Enabled include-archives and interpreted to prevent pulling in any dependencies including weird files in their packaging, like executables or shell files.

Additionally, I made PRs to relevant dependencies that accidentally included shell files into their crate package: rustwasm/wasm-bindgen#4046 and rust-mobile/android-activity#165.

To prevent the same happening to use, I also added package.include to Winit, as we are currently already including a shell file in our crate package. You can test this yourself by running cargo publish and look at the package.

@kchibisov
Copy link
Member

, as we are currently already including a shell file in our crate package

what file is that? I'd assume it counted js/ts files, since I don't see any shell script inside winit.

@daxpedda
Copy link
Member

daxpedda commented Aug 4, 2024

, as we are currently already including a shell file in our crate package

what file is that? I'd assume it counted js/ts files, since I don't see any shell script inside winit.

Ah apologies, I was just rewording copy-pasted text from all the other repos that actually include shell files, it was late 😅.

Yes, it included the TS file, the JS file actually has to stay in.
But what we want to keep out is all the other things that aren't needed, e.g. .github folder, tests folder, CoC, CONTIBUTING.md, deny.toml, clippy.toml. Basically anything that isn't needed on the users computer to either compile the package or generate correct documentation locally should be stripped away.

@kchibisov
Copy link
Member

tests folder

In general, tests must be shipped as well, since distributions do run the cargo test, so if we have some tests that actually do something there it all should be included.

In the end of the day you should ensure that all the basic commands, like cargo test work the same in the end archive.

@daxpedda
Copy link
Member

daxpedda commented Aug 4, 2024

In general, tests must be shipped as well, since distributions do run the cargo test, so if we have some tests that actually do something there it all should be included.

Do distributions get their package from crates.io?

@kchibisov
Copy link
Member

Do distributions get their package from crates.io?

Yes, via archive URL and then they re-cache it. At least that's what I've seen and that's why debian requires the crate to be on crates.io IIRC.

Then they test it and repackage in their distro.

@daxpedda daxpedda force-pushed the dependabot/github_actions/github-actions-c4bcf5a8e2 branch from f06cc16 to ee75375 Compare August 4, 2024 09:25
@daxpedda
Copy link
Member

daxpedda commented Aug 4, 2024

Done, I added the /tests directory to the package.

@daxpedda daxpedda force-pushed the dependabot/github_actions/github-actions-c4bcf5a8e2 branch from ee75375 to 3145d14 Compare August 4, 2024 09:26
@kchibisov
Copy link
Member

Just fyi, it's done by downloading the .crate file and then just extracting it
https://crates.io/api/v1/crates/winit/0.29.5/download
and then tar -xzvf it.

Cargo.toml Outdated
Comment on lines 12 to 15
"/LICENSE",
"/src/**/*.rs",
"/src/changelog/*.md",
"/src/platform_impl/web/script/**/*.min.js",
Copy link
Member

Choose a reason for hiding this comment

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

Can't we just include all of the src?

Copy link
Member

Choose a reason for hiding this comment

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

I changed it up a bit to handle the TS/JS stuff explicitly.

@daxpedda daxpedda force-pushed the dependabot/github_actions/github-actions-c4bcf5a8e2 branch from 3145d14 to 2ecc747 Compare August 4, 2024 09:37
dependabot bot and others added 2 commits August 4, 2024 12:04
Bumps the github-actions group with 1 update: [EmbarkStudios/cargo-deny-action](https://github.com/embarkstudios/cargo-deny-action).


Updates `EmbarkStudios/cargo-deny-action` from 1 to 2
- [Release notes](https://github.com/embarkstudios/cargo-deny-action/releases)
- [Commits](EmbarkStudios/cargo-deny-action@v1...v2)

---
updated-dependencies:
- dependency-name: EmbarkStudios/cargo-deny-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <[email protected]>
@daxpedda daxpedda force-pushed the dependabot/github_actions/github-actions-c4bcf5a8e2 branch from 2ecc747 to 77a157d Compare August 4, 2024 10:04
Cargo.toml Show resolved Hide resolved
Copy link
Member

@kchibisov kchibisov left a comment

Choose a reason for hiding this comment

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

In general, the archive seems to work.

@kchibisov kchibisov merged commit 42ba0a7 into master Aug 4, 2024
54 checks passed
@kchibisov kchibisov deleted the dependabot/github_actions/github-actions-c4bcf5a8e2 branch August 4, 2024 12:14
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 github_actions Pull requests that update GitHub Actions code
Development

Successfully merging this pull request may close these issues.

2 participants