Skip to content

Commit 00606c9

Browse files
committed
Pin GitHub workflow dependencies by hash
Contributes to #174 Signed-off-by: James Taylor <[email protected]>
1 parent 61947cd commit 00606c9

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

.github/workflows/docker-build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929

3030
steps:
3131
- name: Checkout
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3333
- name: Docker meta
3434
id: meta
35-
uses: docker/metadata-action@v5
35+
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5
3636
with:
3737
images: |
3838
${{ inputs.image-name }}
@@ -42,18 +42,18 @@ jobs:
4242
type=semver,pattern={{major}}
4343
type=sha,format=long
4444
- name: Set up QEMU
45-
uses: docker/setup-qemu-action@v3
45+
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3
4646
- name: Set up Docker Buildx
47-
uses: docker/setup-buildx-action@v3
47+
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3
4848
- name: Login to GitHub Container Registry
49-
uses: docker/login-action@v3
49+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
5050
with:
5151
registry: ghcr.io
5252
username: ${{ github.repository_owner }}
5353
password: ${{ secrets.GITHUB_TOKEN }}
5454
- name: Build and push
5555
id: push
56-
uses: docker/build-push-action@v6
56+
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6
5757
with:
5858
context: .
5959
platforms: linux/amd64,linux/arm64
@@ -68,7 +68,7 @@ jobs:
6868

6969
steps:
7070
- name: Checkout
71-
uses: actions/checkout@v4
71+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
7272

7373
- name: Create package
7474
uses: hyperledgendary/package-k8s-chaincode-action@ba10aea43e3d4f7991116527faf96e3c2b07abc7

.github/workflows/go.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
GOARCH: ${{ matrix.goarch }}
2929

3030
steps:
31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3232

3333
- name: Set up Go
34-
uses: actions/setup-go@v5
34+
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5
3535
with:
3636
go-version: 1.22
3737

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
name: lint
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/setup-go@v5
26+
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5
2727
with:
2828
go-version: 1.22
29-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3030
- name: golangci-lint
3131
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8
3232
with:

.github/workflows/mkdocs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3737
- name: Setup Python
38-
uses: actions/setup-python@v5
38+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
3939
with:
4040
python-version: 3.x
4141
cache: "pip"
4242
- name: Setup Pages
4343
id: pages
44-
uses: actions/configure-pages@v5
44+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
4545
- name: Install requirements
4646
run: pip install -r requirements.txt
4747
- name: Build with mkdocs
4848
run: mkdocs build --strict
4949
- name: Upload artifact
50-
uses: actions/upload-pages-artifact@v3
50+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
5151
with:
5252
path: ./site
5353

@@ -62,4 +62,4 @@ jobs:
6262
steps:
6363
- name: Deploy to GitHub Pages
6464
id: deployment
65-
uses: actions/deploy-pages@v4
65+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

.github/workflows/ossf-scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ jobs:
6868
# Upload the results to GitHub's code scanning dashboard (optional).
6969
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
7070
- name: "Upload to code-scanning"
71-
uses: github/codeql-action/upload-sarif@v3
71+
uses: github/codeql-action/upload-sarif@df409f7d9260372bd5f19e5b04e83cb3c43714ae # v3.27.9
7272
with:
7373
sarif_file: results.sarif

0 commit comments

Comments
 (0)