From 9518d623730a362a2cf558cb77d020be8ce50bc8 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 7 Sep 2023 16:19:07 -0400 Subject: flake/actions: replace some crane checks with pre-commit --- .github/workflows/clippy.yaml | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.github/workflows/clippy.yaml') diff --git a/.github/workflows/clippy.yaml b/.github/workflows/clippy.yaml index 48b1bd6..cb35d14 100644 --- a/.github/workflows/clippy.yaml +++ b/.github/workflows/clippy.yaml @@ -11,6 +11,10 @@ jobs: clippy: runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + steps: - uses: actions/checkout@v4 - uses: DeterminateSystems/nix-installer-action@main @@ -23,6 +27,7 @@ jobs: - name: run clippy run: | + mkdir -p /tmp cargo clippy --all --all-targets --message-format=json | clippy-sarif > /tmp/clippy.sarif - name: upload results -- cgit v1.2.3