diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a8f1d825..3cb17018 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,9 +6,13 @@ updates: interval: "daily" labels: - "dependencies" + cooldown: + default-days: 7 - package-ecosystem: "github-actions" directory: "/" schedule: interval: "daily" labels: - "dependencies" + cooldown: + default-days: 7 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c49aa30e..ee1f0555 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,11 +19,14 @@ jobs: os: ["ubuntu-24.04"] steps: - - uses: actions/setup-go@v7 + - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version: ${{ matrix.go }} + cache: false - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Get external dependencies (Ubuntu) if: startsWith(matrix.os, 'ubuntu-') @@ -38,7 +41,7 @@ jobs: working-directory: cmd/api - name: Upload artifact - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: chatterino-api-${{ matrix.go }}-${{ matrix.os }} path: build/chatterino-api @@ -49,11 +52,12 @@ jobs: if: startsWith(github.ref, 'refs/tags/') steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: path: "project-git-repo" + persist-credentials: false - - uses: actions/download-artifact@v8 + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: name: chatterino-api-stable-ubuntu-24.04 path: bins/ubuntu/ @@ -72,7 +76,7 @@ jobs: GITHUB_REF_VALUE: ${{ github.ref }} - name: create release - uses: softprops/action-gh-release@v3 + uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2 with: body_path: release-body files: | diff --git a/.github/workflows/changelog-check.yml b/.github/workflows/changelog-check.yml index 87f7ba54..13437347 100644 --- a/.github/workflows/changelog-check.yml +++ b/.github/workflows/changelog-check.yml @@ -11,7 +11,7 @@ jobs: steps: # Gives an error if there's no change in the changelog (except using label) - name: Changelog check - uses: dangoslen/changelog-enforcer@v3 + uses: dangoslen/changelog-enforcer@204e7d3ef26579f4cd0fd759c57032656fdf23c7 # v3.6.1 with: changeLogPath: "CHANGELOG.md" skipLabels: "no changelog entry needed, dependencies" diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 2245e417..cd51a033 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -25,7 +25,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Setup Docker buildx uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c @@ -46,7 +48,9 @@ jobs: if: github.event_name == 'push' steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Setup Docker buildx uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5c708a26..20dc1be4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,13 +18,15 @@ jobs: steps: - name: Set up Go - uses: actions/setup-go@v7 + uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version: ${{ matrix.go }} id: go - name: Check out code into the Go module directory - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Install dependencies run: sudo apt update && sudo apt -y install build-essential libvips-dev diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 205d711b..938171d9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,10 +20,13 @@ jobs: go: ["oldstable", "stable"] steps: - - uses: actions/checkout@v7 - - uses: actions/setup-go@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 with: go-version: ${{ matrix.go }} + cache: false - name: Get external dependencies (Ubuntu) run: sudo apt update && sudo apt -y install build-essential libvips-dev @@ -32,7 +35,7 @@ jobs: - name: Run coverage run: go test -race -coverprofile=coverage.txt -covermode=atomic -tags test ./... - name: Upload coverage to Codecov - uses: codecov/codecov-action@v7 + uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 if: matrix.go == 'stable' with: fail_ci_if_error: true diff --git a/CHANGELOG.md b/CHANGELOG.md index 6af805c5..39880992 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- Dev: Harden CI with zizmor. (#962) + ## 4.0.0 - Breaking: Updated the minimum supported Ubuntu version to v24.04. (#895)