Skip to content

Commit f488777

Browse files
committed
Pin third-party actions to a sha
1 parent 84b242b commit f488777

File tree

5 files changed

+21
-5
lines changed

5 files changed

+21
-5
lines changed

.github/workflows/base-image.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
echo "$DOCKER_TOKEN" | docker login --username danielflook --password-stdin
3737
3838
- name: Set up Docker Buildx
39-
uses: docker/setup-buildx-action@v3
39+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3
4040

4141
- name: Base image
4242
id: build-and-push

.github/workflows/pull_request_review.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Test pull_request_review event
33
on:
44
- pull_request_review
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
apply:
811
runs-on: ubuntu-24.04

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
echo "$DOCKER_TOKEN" | docker login --username danielflook --password-stdin
4343
4444
- name: Set up Docker Buildx
45-
uses: docker/setup-buildx-action@v3
45+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3
4646

4747
- name: Build action image
4848
id: image_build

.github/workflows/test.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,28 @@ jobs:
9898
./actionlint example_workflows/*.yaml
9999
100100
- name: Lint CHANGELOG
101-
uses: DavidAnson/markdownlint-cli2-action@v19
101+
uses: DavidAnson/markdownlint-cli2-action@05f32210e84442804257b2a6f20b273450ec8265 # v19
102102
with:
103103
config: '.config/changelog.markdownlint.yaml'
104104
globs: 'CHANGELOG.md'
105105

106106
- name: Lint Other Markdown
107-
uses: DavidAnson/markdownlint-cli2-action@v19
107+
uses: DavidAnson/markdownlint-cli2-action@05f32210e84442804257b2a6f20b273450ec8265 # v19
108108
with:
109109
config: '.config/.markdownlint.yaml'
110110
globs: |
111111
docs/*.md
112112
**/README.md
113+
114+
ensure-pinned-actions:
115+
runs-on: ubuntu-24.04
116+
steps:
117+
- name: Checkout code
118+
uses: actions/checkout@v4
119+
120+
- name: Ensure SHA pinned actions
121+
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@25ed13d0628a1601b4b44048e63cc4328ed03633 # v3
122+
with:
123+
allowlist: |
124+
actions/
125+
dflook/

.github/workflows/trigger-test-events.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
contents: write
1515
steps:
1616
- name: Repository Dispatch
17-
uses: peter-evans/repository-dispatch@v2
17+
uses: peter-evans/repository-dispatch@bf47d102fdb849e755b0b0023ea3e81a44b6f570 # v2
1818
with:
1919
event-type: test
2020
client-payload: '{"pull_request": { "url": "${{ github.event.pull_request.url }}" } }'

0 commit comments

Comments
 (0)