From 90b4a8f5b361ab43caa395a34ddf783d851ac6fa Mon Sep 17 00:00:00 2001 From: Josh Liburdi Date: Wed, 9 Oct 2024 10:04:49 -0700 Subject: [PATCH] ci(workflows): Pin Hashes (#256) --- .github/workflows/code.yml | 17 +++++++++-------- .github/workflows/conventional_commits.yml | 2 +- .github/workflows/release_please.yml | 2 +- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/code.yml b/.github/workflows/code.yml index a15ce272..38b406e2 100644 --- a/.github/workflows/code.yml +++ b/.github/workflows/code.yml @@ -16,12 +16,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 1 - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version: 1.22 @@ -29,25 +29,26 @@ jobs: run: go test -timeout 30s -v ./... - name: Linting - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.0 with: - version: latest + version: v1.61.0 # Inherits workflow permissions. python: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: python-version: "3.x" + # v24.10.0 - name: Linting run: | - pip3 install black + pip install git+https://github.com/psf/black@1b2427a2b785cc4aac97c19bb4b9a0de063f9547 find -name *.py | xargs black --check # Inherits workflow permissions. @@ -55,7 +56,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: fetch-depth: 1 diff --git a/.github/workflows/conventional_commits.yml b/.github/workflows/conventional_commits.yml index 3848b9fd..01366e05 100644 --- a/.github/workflows/conventional_commits.yml +++ b/.github/workflows/conventional_commits.yml @@ -18,6 +18,6 @@ jobs: runs-on: ubuntu-latest steps: - - uses: amannn/action-semantic-pull-request@v4 + - uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release_please.yml b/.github/workflows/release_please.yml index faa370ab..297e9acd 100644 --- a/.github/workflows/release_please.yml +++ b/.github/workflows/release_please.yml @@ -16,7 +16,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v3 + - uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3 with: release-type: go package-name: release-please-action