Skip to content

Commit bf50c3d

Browse files
authored
Merge pull request #38 from dash14/docs/pin-action-refs-to-sha
Pin third-party action references to commit SHAs in docs
2 parents 4a159a4 + 46b076e commit bf50c3d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
audit:
8888
runs-on: ubuntu-latest
8989
steps:
90-
- uses: actions/checkout@v4
90+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9191

9292
- name: Start Buildcage in audit mode
9393
id: buildcage
@@ -96,13 +96,13 @@ jobs:
9696
proxy_mode: audit # Log everything, block nothing
9797

9898
- name: Set up Docker Buildx
99-
uses: docker/setup-buildx-action@v4
99+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
100100
with:
101101
driver: remote
102102
endpoint: docker-container://buildcage
103103

104104
- name: Build and discover dependencies
105-
uses: docker/build-push-action@v6
105+
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
106106
with:
107107
context: .
108108
push: false # Set to true to push the built image
@@ -135,7 +135,7 @@ jobs:
135135
build:
136136
runs-on: ubuntu-latest
137137
steps:
138-
- uses: actions/checkout@v4
138+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
139139
140140
- name: Start Buildcage in restrict mode
141141
id: buildcage
@@ -147,13 +147,13 @@ jobs:
147147
fonts.googleapis.com:443
148148
149149
- name: Set up Docker Buildx
150-
uses: docker/setup-buildx-action@v4
150+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
151151
with:
152152
driver: remote
153153
endpoint: docker-container://buildcage
154154
155155
- name: Build with protection
156-
uses: docker/build-push-action@v6
156+
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
157157
with:
158158
context: .
159159
push: false # Set to true to push the built image
@@ -216,7 +216,7 @@ Pass the container name to [`docker/setup-buildx-action`](https://github.com/doc
216216

217217
```yaml
218218
- name: Set up Docker Buildx
219-
uses: docker/setup-buildx-action@v4
219+
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
220220
with:
221221
driver: remote
222222
endpoint: docker-container://buildcage

docs/self-hosting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ jobs:
6868
contents: read
6969
packages: read
7070
steps:
71-
- uses: actions/checkout@v4
71+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7272

7373
- name: Login to GHCR
74-
uses: docker/login-action@v3
74+
uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
7575
with:
7676
registry: ghcr.io
7777
username: ${{ github.actor }}

0 commit comments

Comments
 (0)