diff --git a/.github/workflows/cargo-audit.yml b/.github/workflows/cargo-audit.yml new file mode 100644 index 000000000..9b42354f9 --- /dev/null +++ b/.github/workflows/cargo-audit.yml @@ -0,0 +1,38 @@ +name: Cargo Audit + +on: + push: + branches: [main] + paths: + - "**/Cargo.toml" + - "**/Cargo.lock" + - ".github/workflows/cargo-audit.yml" + pull_request: + paths: + - "**/Cargo.toml" + - "**/Cargo.lock" + - ".github/workflows/cargo-audit.yml" + schedule: + - cron: "0 0 * * 0" # Run weekly on Sundays at midnight + +jobs: + cargo-audit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Install cargo-audit + run: cargo install cargo-audit + + - name: Run cargo audit + working-directory: ./libwasmvm + run: cargo audit + continue-on-error: ${{ github.event_name == 'schedule' }} # Don't fail scheduled runs + + - name: Run cargo audit with ignore unmaintained + working-directory: ./libwasmvm + run: cargo audit --ignore RUSTSEC-2024-0436 --ignore RUSTSEC-2024-0370 + # These are the unmaintained crates we're already tracking in deny.toml diff --git a/.github/workflows/cargo-deny.yml b/.github/workflows/cargo-deny.yml new file mode 100644 index 000000000..a43f8f37f --- /dev/null +++ b/.github/workflows/cargo-deny.yml @@ -0,0 +1,34 @@ +name: Cargo Deny + +on: + push: + branches: [main] + paths: + - "**/Cargo.toml" + - "**/Cargo.lock" + - "**/deny.toml" + - ".github/workflows/cargo-deny.yml" + pull_request: + paths: + - "**/Cargo.toml" + - "**/Cargo.lock" + - "**/deny.toml" + - ".github/workflows/cargo-deny.yml" + +jobs: + cargo-deny: + runs-on: ubuntu-latest + strategy: + matrix: + checks: + # - advisories - this should be restored at some point + - bans + - sources + steps: + - uses: actions/checkout@v3 + - uses: EmbarkStudios/cargo-deny-action@v1 + with: + command: check ${{ matrix.checks }} + arguments: --all-features --exclude-dev + rust-version: stable + manifest-path: libwasmvm/Cargo.toml diff --git a/.github/workflows/lint-go.yml b/.github/workflows/lint-go.yml index 9cdf66336..626d44b23 100644 --- a/.github/workflows/lint-go.yml +++ b/.github/workflows/lint-go.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: "1.23.4" + go-version: "1.24" cache: false - name: golangci-lint uses: golangci/golangci-lint-action@v7