Skip to content

Commit ac919d5

Browse files
authored
Add cargo audit CI (#9182)
* Add cargo audit CI * Installing cargo-audit from cargo instead of action from rustsec/audit-check * Remove specific target branch
1 parent cc139c9 commit ac919d5

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/audit.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: Security audit
19+
20+
concurrency:
21+
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
22+
cancel-in-progress: true
23+
24+
on:
25+
push:
26+
paths:
27+
- "**/Cargo.toml"
28+
- "**/Cargo.lock"
29+
30+
pull_request:
31+
paths:
32+
- "**/Cargo.toml"
33+
- "**/Cargo.lock"
34+
35+
jobs:
36+
security_audit:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v4
40+
- name: Install cargo-audit
41+
run: cargo install cargo-audit
42+
- name: Run audit check
43+
run: cargo audit

0 commit comments

Comments
 (0)