ci: update the checks dependencies (#96)
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/workflows/checkov-check.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/checkov-check.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -22,7 +22,7 @@ jobs: | ||||
|         with: | ||||
|           python-version: "3.13.1" | ||||
|       - name: Rust toolchain installation | ||||
|         uses: dtolnay/rust-toolchain@0579bb9e1907e560c2f263f705f93655a44a07e5 | ||||
|         uses: dtolnay/rust-toolchain@6691ebadcb18182cc1391d07c9f295f657c593cd | ||||
|       - name: code checkout | ||||
|         uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||||
|         with: | ||||
|   | ||||
							
								
								
									
										8
									
								
								.github/workflows/rust-check.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/rust-check.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -21,18 +21,20 @@ jobs: | ||||
|         run: > | ||||
|           apt-get update && apt-get install -y | ||||
|           libgtk-3-dev=3.24.33-1ubuntu2.2 | ||||
|           libjavascriptcoregtk-4.1-dev=2.46.5-0ubuntu0.22.04.1 | ||||
|           libjavascriptcoregtk-4.1-dev=2.48.3-0ubuntu0.22.04.1 | ||||
|           libsoup-3.0-dev=3.0.7-0ubuntu1 | ||||
|           libwebkit2gtk-4.1-dev=2.46.5-0ubuntu0.22.04.1 | ||||
|           libwebkit2gtk-4.1-dev=2.48.3-0ubuntu0.22.04.1 | ||||
|           libxdo-dev=1:3.20160805.1-4 | ||||
|       - name: Rust toolchain installation | ||||
|         uses: dtolnay/rust-toolchain@0579bb9e1907e560c2f263f705f93655a44a07e5 | ||||
|         uses: dtolnay/rust-toolchain@6691ebadcb18182cc1391d07c9f295f657c593cd | ||||
|         with: | ||||
|           components: clippy, rustfmt | ||||
|       - name: code checkout | ||||
|         uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||||
|         with: | ||||
|           fetch-depth: 0 | ||||
|       - name: .env symlink creation | ||||
|         run: ln -s .env.example .env | ||||
|       - name: npm build | ||||
|         run: npm install && npm run build | ||||
|       - name: rustfmt check | ||||
|   | ||||
| @@ -45,7 +45,7 @@ impl From<diesel::result::Error> for ProjectError { | ||||
| // Has to be implemented for Dioxus server functions. | ||||
| impl Display for ProjectError { | ||||
|     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||||
|         write!(f, "{:?}", self) | ||||
|         write!(f, "{self:?}") | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -65,7 +65,7 @@ impl From<ErrorVec<Error>> for ErrorVec<SubtaskError> { | ||||
| // Has to be implemented for Dioxus server functions. | ||||
| impl Display for SubtaskError { | ||||
|     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||||
|         write!(f, "{:?}", self) | ||||
|         write!(f, "{self:?}") | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -55,7 +55,7 @@ impl From<diesel::result::Error> for TaskError { | ||||
| // Has to be implemented for Dioxus server functions. | ||||
| impl Display for TaskError { | ||||
|     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||||
|         write!(f, "{:?}", self) | ||||
|         write!(f, "{self:?}") | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -12,10 +12,10 @@ async fn fetch_projects(keys: Vec<QueryKey>) -> QueryResult<QueryValue, QueryErr | ||||
|         match get_projects().await { | ||||
|             Ok(projects) => Ok(QueryValue::Projects(projects)), | ||||
|             Err(ServerFnError::WrappedServerError(errors)) => Err(QueryErrors::Error(errors)), | ||||
|             Err(error) => panic!("Unexpected error: {:?}", error), | ||||
|             Err(error) => panic!("Unexpected error: {error:?}"), | ||||
|         } | ||||
|         .into() | ||||
|     } else { | ||||
|         panic!("Unexpected query keys: {:?}", keys); | ||||
|         panic!("Unexpected query keys: {keys:?}"); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -17,10 +17,10 @@ async fn fetch_subtasks_of_task(keys: Vec<QueryKey>) -> QueryResult<QueryValue, | ||||
|         match get_subtasks_of_task(*task_id).await { | ||||
|             Ok(subtasks) => Ok(QueryValue::Subtasks(subtasks)), | ||||
|             Err(ServerFnError::WrappedServerError(errors)) => Err(QueryErrors::Error(errors)), | ||||
|             Err(error) => panic!("Unexpected error: {:?}", error), | ||||
|             Err(error) => panic!("Unexpected error: {error:?}"), | ||||
|         } | ||||
|         .into() | ||||
|     } else { | ||||
|         panic!("Unexpected query keys: {:?}", keys); | ||||
|         panic!("Unexpected query keys: {keys:?}"); | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -19,11 +19,11 @@ async fn fetch_tasks_in_category(keys: Vec<QueryKey>) -> QueryResult<QueryValue, | ||||
|         match get_tasks_in_category(category.clone()).await { | ||||
|             Ok(tasks) => Ok(QueryValue::Tasks(tasks)), | ||||
|             Err(ServerFnError::WrappedServerError(errors)) => Err(QueryErrors::Error(errors)), | ||||
|             Err(error) => panic!("Unexpected error: {:?}", error), | ||||
|             Err(error) => panic!("Unexpected error: {error:?}"), | ||||
|         } | ||||
|         .into() | ||||
|     } else { | ||||
|         panic!("Unexpected query keys: {:?}", keys); | ||||
|         panic!("Unexpected query keys: {keys:?}"); | ||||
|     } | ||||
| } | ||||
|  | ||||
| @@ -47,10 +47,10 @@ async fn fetch_tasks_with_subtasks_in_category( | ||||
|         match get_tasks_with_subtasks_in_category(category.clone()).await { | ||||
|             Ok(tasks) => Ok(QueryValue::TasksWithSubtasks(tasks)), | ||||
|             Err(ServerFnError::WrappedServerError(errors)) => Err(QueryErrors::Error(errors)), | ||||
|             Err(error) => panic!("Unexpected error: {:?}", error), | ||||
|             Err(error) => panic!("Unexpected error: {error:?}"), | ||||
|         } | ||||
|         .into() | ||||
|     } else { | ||||
|         panic!("Unexpected query keys: {:?}", keys); | ||||
|         panic!("Unexpected query keys: {keys:?}"); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Gitea
						Gitea