Skip to content

Migrate off archived actions-rs/clippy-check - #838

Open
IncognitoQuack wants to merge 2 commits into
google:mainfrom
IncognitoQuack:fix/migrate-clippy-check-action
Open

Migrate off archived actions-rs/clippy-check#838
IncognitoQuack wants to merge 2 commits into
google:mainfrom
IncognitoQuack:fix/migrate-clippy-check-action

Conversation

@IncognitoQuack

Copy link
Copy Markdown

The actions-rs org has been archived since 2023, so its actions no longer get updates or security fixes.

Switch the clippy job to clechasseur/rs-clippy-check, a maintained fork of the same action. It takes the same args input, so the lints that run are unchanged.

The token input is dropped because it no longer exists: the fork reports lints through workflow annotation commands instead of the checks API. That also makes the job's checks: write permission unnecessary, so it goes too.

Fixes #665

@google-cla

google-cla Bot commented Sep 3, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@IncognitoQuack

Copy link
Copy Markdown
Author

@googlebot I signed it!

The actions-rs org has been archived since 2023, so its actions no
longer get updates or security fixes.

Switch the clippy job to clechasseur/rs-clippy-check, a maintained
fork of the same action. It takes the same args input, so the lints
that run are unchanged.

The token input is dropped because it no longer exists: the fork
reports lints through workflow annotation commands instead of the
checks API. That also makes the job's checks: write permission
unnecessary, so it goes too.

Fixes google#665
@IncognitoQuack
IncognitoQuack force-pushed the fix/migrate-clippy-check-action branch from aa0f5b9 to abde0e3 Compare September 3, 2026 12:01
Set persist-credentials: false on every actions/checkout step so the
job token is not left behind in .git/config after checkout, and narrow
the top-level read-all permissions to contents: read, which is all any
job in this workflow needs.

Together with the clippy action migration this brings zizmor to a clean
scan (0 findings), where main currently reports 10.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI uses archived GitHub Action

1 participant