| author | Alberto Bertogli
<albertito@blitiri.com.ar> 2026-11-29 20:11:04 UTC |
| committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2026-11-29 20:11:04 UTC |
| parent | e22818f193f6041aa63c02c34fd149eff0d4fbcb |
| .github/workflows/govulncheck.yaml | +11 | -1 |
| .github/workflows/tests.yaml | +21 | -6 |
diff --git a/.github/workflows/govulncheck.yaml b/.github/workflows/govulncheck.yaml index 3e92978..1938948 100644 --- a/.github/workflows/govulncheck.yaml +++ b/.github/workflows/govulncheck.yaml @@ -8,6 +8,14 @@ on: branches: [ "main", "next" ] schedule: - cron: '29 21 * * 6' + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: govulncheck: @@ -16,6 +24,8 @@ jobs: name: Run govulncheck steps: - id: govulncheck - uses: golang/govulncheck-action@v1 + uses: golang/govulncheck-action@032d45514ae346b1db93c04b0c90b841c370344f # v1.1.0 with: check-latest: true + # No external dependencies (and no go.sum), nothing to cache. + cache: false diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 64f00fa..c8b9649 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -8,6 +8,14 @@ on: branches: [ "main", "next" ] schedule: - cron: '26 21 * * 6' + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: tests: @@ -18,11 +26,15 @@ jobs: # Test against stable, and the oldest supported version. go: [ 'stable', '1.26.x' ] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0 with: go-version: ${{ matrix.go }} check-latest: true + # No external dependencies (and no go.sum), nothing to cache. + cache: false - name: test run: make test @@ -31,15 +43,18 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: actions/setup-go@d8cbb8045d7f43706b9177cceb36c1f91a6644d5 # v7.1.0 with: go-version: 'stable' check-latest: true + cache: false - name: coverage tests run: ./tests/cover.sh - name: upload - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1 with: token: ${{ secrets.CODECOV_TOKEN }} - file: .cover-merged.out + files: .cover-merged.out