From 18877391aac5a68da9c82c35319809ea3699617a Mon Sep 17 00:00:00 2001 From: Kai Hendry Date: Tue, 1 Aug 2023 17:48:53 +0100 Subject: [PATCH] ci: install deps for pre-commit to run --- .github/workflows/pre-commit.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index cb2fb6c..860c32a 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -7,6 +7,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: "stable" + check-latest: true + - name: Install gosec + run: go install github.com/securego/gosec/v2/cmd/gosec@latest + - name: Install static check + run: go install honnef.co/go/tools/cmd/staticcheck@latest - uses: actions/setup-python@v4 with: python-version: 3.x