diff --git a/.envrc b/.envrc deleted file mode 100644 index a63eb96..0000000 --- a/.envrc +++ /dev/null @@ -1 +0,0 @@ -use asdf diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d3d9270..d7e74e6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,7 +24,6 @@ jobs: uses: actions/setup-go@v5 with: go-version-file: ./go.mod - cache: false - name: golangci-lint uses: golangci/golangci-lint-action@v6 @@ -55,6 +54,38 @@ jobs: env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + trivy: + runs-on: ubuntu-latest + + permissions: + contents: read + security-events: write + actions: read + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version-file: ./go.mod + + - name: Download Go modules + run: go mod download + + - name: Run Trivy vulnerability scanner in repo mode + uses: aquasecurity/trivy-action@0.24.0 + with: + scan-type: "fs" + format: "sarif" + output: "trivy-results.sarif" + + - name: Upload Trivy scan results to GitHub Security tab + uses: github/codeql-action/upload-sarif@v3 + with: + sarif_file: "trivy-results.sarif" + build: runs-on: ubuntu-latest diff --git a/.mise.toml b/.mise.toml new file mode 100644 index 0000000..b6eea30 --- /dev/null +++ b/.mise.toml @@ -0,0 +1,2 @@ +[tools] +go = "1.22.5" diff --git a/.tool-versions b/.tool-versions deleted file mode 100644 index 009efa3..0000000 --- a/.tool-versions +++ /dev/null @@ -1 +0,0 @@ -golang 1.22.5