Merge pull request #126 from flyingrobots/echo/LICENSE-SPDX-headers #203
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Security Audit | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - "echo/**" | |
| - "feat/**" | |
| pull_request: | |
| jobs: | |
| audit: | |
| name: Cargo Audit (stable) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: false | |
| - uses: dtolnay/[email protected] | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| ~/.cargo/bin/cargo-audit | |
| key: audit-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Install cargo-audit | |
| run: | | |
| if ! command -v cargo-audit >/dev/null; then | |
| cargo install cargo-audit --locked | |
| fi | |
| - name: Run cargo audit | |
| run: cargo audit --deny warnings |