Skip to content

Commit 01c6d57

Browse files
authored
Pin SHA for github actions (#5410)
1 parent 8851d37 commit 01c6d57

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

.github/workflows/auto-label-pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ jobs:
2626
if: github.event.action != 'labeled' || github.event.sender.type != 'Bot'
2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v5.0.0
29+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3030

3131
- name: Generate a token
3232
id: generate-token
33-
uses: actions/create-github-app-token@v2.1.1
33+
uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
3434
with:
3535
app-id: ${{ secrets.ESPHOME_GITHUB_APP_ID }}
3636
private-key: ${{ secrets.ESPHOME_GITHUB_APP_PRIVATE_KEY }}
3737

3838
- name: Auto Label PR
39-
uses: actions/github-script@v7.0.1
39+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
4040
env:
4141
PR_NUMBER: ${{ github.event.inputs.pr_number || github.event.number }}
4242
with:

.github/workflows/component-image.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- name: Comment
2121
id: create-comment
22-
uses: actions/github-script@v7.0.1
22+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
2323
with:
2424
script: |
2525
const result = await github.rest.issues.createComment({
@@ -45,19 +45,19 @@ jobs:
4545
needs: prepare
4646
steps:
4747
- name: Generate
48-
uses: esphome/component-image-generator@v1.0.0
48+
uses: esphome/component-image-generator@d0d2a195b500e8c37c17f299ff6b90933f2197cf # v1.0.0
4949
with:
5050
component: ${{ needs.prepare.outputs.name }}
5151

5252
- name: Upload
53-
uses: actions/upload-artifact@v4.6.2
53+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5454
id: upload-artifact
5555
with:
5656
name: ${{ needs.prepare.outputs.name }}
5757
path: ${{ needs.prepare.outputs.name_lower }}.svg
5858

5959
- name: Update Comment
60-
uses: actions/github-script@v7.0.1
60+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
6161
with:
6262
script: |
6363
await github.rest.issues.updateComment({

.github/workflows/docker.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,36 @@ jobs:
2323
steps:
2424
-
2525
name: Install pagefind
26-
uses: jaxxstorm/action-install-gh-release@v2.1.0
26+
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
2727
with:
2828
repo: cloudcannon/pagefind
2929
-
3030
name: Checkout source code
31-
uses: actions/checkout@v5.0.0
31+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3232
-
3333
name: Set up QEMU
34-
uses: docker/setup-qemu-action@v3
34+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3
3535
-
3636
name: Set up Docker Buildx
37-
uses: docker/setup-buildx-action@v3
37+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
3838
-
3939
name: Login to DockerHub
4040
if: github.event_name != 'pull_request'
41-
uses: docker/login-action@v3
41+
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3
4242
with:
4343
username: ${{ secrets.DOCKER_USER }}
4444
password: ${{ secrets.DOCKER_PASSWORD }}
4545
- name: Login to GitHub Container Registry
4646
if: github.event_name != 'pull_request'
47-
uses: docker/login-action@v3
47+
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3
4848
with:
4949
registry: ghcr.io
5050
username: ${{ github.repository_owner }}
5151
password: ${{ secrets.GITHUB_TOKEN }}
5252
-
5353
name: Build and push
5454
id: docker_build
55-
uses: docker/build-push-action@v6
55+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
5656
with:
5757
context: .
5858
push: ${{ github.event_name != 'pull_request' }}

.github/workflows/labeller-recheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
if: github.event.label.name == 'labeller-recheck'
1616
steps:
1717
- name: Call Auto Label workflow
18-
uses: actions/github-script@v7.0.1
18+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
1919
with:
2020
github-token: ${{ secrets.GITHUB_TOKEN }}
2121
script: |

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Install pagefind
23-
uses: jaxxstorm/action-install-gh-release@v2.1.0
23+
uses: jaxxstorm/action-install-gh-release@6096f2a2bbfee498ced520b6922ac2c06e990ed2 # v2.1.0
2424
with:
2525
repo: cloudcannon/pagefind
26-
- uses: actions/checkout@v5.0.0
26+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2727
- name: Set up Python 3.12
28-
uses: actions/setup-python@v6
28+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6
2929
with:
3030
python-version: 3.12
3131
- name: Install dependencies
@@ -34,7 +34,7 @@ jobs:
3434
run: |
3535
echo "::add-matcher::.github/workflows/matchers/ci-custom.json"
3636
- name: markdownlint-cli
37-
uses: nosborn/github-action-markdown-cli@v3.5.0
37+
uses: nosborn/github-action-markdown-cli@508d6cefd8f0cc99eab5d2d4685b1d5f470042c1 # v3.5.0
3838
with:
3939
config_file: ".markdownlintrc"
4040
files: .

.github/workflows/lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
lock:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: dessant/lock-threads@v4
19+
- uses: dessant/lock-threads@be8aa5be94131386884a6da4189effda9b14aa21 # v4
2020
with:
2121
pr-inactive-days: "1"
2222
pr-lock-reason: ""

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
stale:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/stale@v10
19+
- uses: actions/stale@3a9db7e6a41a89f618792c92c0e97cc736e1b13f # v10
2020
with:
2121
days-before-pr-stale: 60
2222
days-before-pr-close: 7

0 commit comments

Comments
 (0)