This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
Update actions/checkout action to #312
Annotations
2 errors and 6 warnings
Scan
This version of the CodeQL Action was deprecated on January 18th, 2023, and is no longer updated or supported. For better performance, improved security, and new features, upgrade to v2. For more information, see https://github.blog/changelog/2023-01-18-code-scanning-codeql-action-v1-is-now-deprecated/
|
Scan
ref 'refs/heads/renovate/actions-checkout-.x' not found in this repository
|
the loop variable `i` is used to index `repositories`:
src/main.rs#L116
warning: the loop variable `i` is used to index `repositories`
--> src/main.rs:116:14
|
116 | for i in 0..repositories.len() {
| ^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop
= note: `#[warn(clippy::needless_range_loop)]` on by default
help: consider using an iterator and enumerate()
|
116 | for (i, <item>) in repositories.iter().enumerate() {
| ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
unneeded late initialization:
src/main.rs#L87
warning: unneeded late initialization
--> src/main.rs:87:13
|
87 | let open_issues_count;
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init
help: move the declaration `open_issues_count` here and remove the assignments from the `match` arms
|
87 ~
88 ~ let open_issues_count = match repository.has_issues.unwrap() {
89 | true => {
90 ~ repository.open_issues_count.unwrap()
91 | }
92 | false => {
93 ~ 0
94 | }
95 ~ };
|
|
unneeded late initialization:
src/main.rs#L77
warning: unneeded late initialization
--> src/main.rs:77:13
|
77 | let description;
| ^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init
help: move the declaration `description` here and remove the assignments from the `match` arms
|
77 ~
78 ~ let description = match repository.description {
79 | Some(gh_description) => {
80 ~ gh_description
81 | }
82 | None => {
83 ~ String::new()
84 | }
85 ~ };
|
|
unneeded late initialization:
src/main.rs#L39
warning: unneeded late initialization
--> src/main.rs:39:5
|
39 | let octocrab;
| ^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_late_init
= note: `#[warn(clippy::needless_late_init)]` on by default
help: move the declaration `octocrab` here and remove the assignments from the `match` arms
|
39 ~
40 ~ let octocrab = match fs::read_to_string("./token.txt") {
41 | Ok(_) => {
42 ~ octocrab::OctocrabBuilder::new()
43 | .personal_token(fs::read_to_string("./token.txt").unwrap())
44 | .build()
45 ~ .unwrap()
46 | }
47 | Err(_) => {
48 ~ octocrab::OctocrabBuilder::new().build().unwrap()
49 | }
50 ~ };
|
|
Scan
The following actions uses node12 which is deprecated and will be forced to run on node16: github/codeql-action/upload-sarif@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Scan
The following actions use a deprecated Node.js version and will be forced to run on node20: github/codeql-action/upload-sarif@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|