Skip to content

Commit 0993906

Browse files
authored
Merge pull request espressif#290 from espressif/ci/fix_versions
ci(workflows): Lock actions to commits and improve readability
2 parents c4a6b8f + 5c05937 commit 0993906

File tree

4 files changed

+32
-23
lines changed

4 files changed

+32
-23
lines changed

.github/workflows/cron_build.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
deploy_needed: ${{ steps.check.outputs.deploy_needed }}
4242
targets_list: ${{ steps.check.outputs.targets_list }}
4343
steps:
44-
- uses: actions/checkout@v4
44+
- name: Checkout ${{ inputs.lib_builder_branch }}
45+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4546
with:
4647
ref: ${{ inputs.lib_builder_branch }}
4748

@@ -65,7 +66,8 @@ jobs:
6566
matrix:
6667
target: ${{ fromJson(needs.check-if-needed.outputs.targets_list) }}
6768
steps:
68-
- uses: actions/checkout@v4
69+
- name: Checkout ${{ inputs.lib_builder_branch }}
70+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6971
with:
7072
ref: ${{ inputs.lib_builder_branch }}
7173

@@ -88,13 +90,13 @@ jobs:
8890
8991
- name: Upload build
9092
if: failure()
91-
uses: actions/upload-artifact@v4
93+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
9294
with:
9395
name: build-${{ env.libs_branch }}-${{ matrix.target }}
9496
path: build
9597

9698
- name: Upload library files
97-
uses: actions/upload-artifact@v4
99+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
98100
with:
99101
name: libs-${{ env.libs_branch }}-${{ matrix.target }}
100102
path: dist
@@ -105,7 +107,8 @@ jobs:
105107
needs: [check-if-needed, build-libs]
106108
if: needs.check-if-needed.outputs.deploy_needed == '1'
107109
steps:
108-
- uses: actions/checkout@v4
110+
- name: Checkout ${{ inputs.lib_builder_branch }}
111+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
109112
with:
110113
ref: ${{ inputs.lib_builder_branch }}
111114

@@ -115,7 +118,7 @@ jobs:
115118
echo "libs_branch=${branch//\//_}" >> $GITHUB_ENV
116119
117120
- name: Download artifacts
118-
uses: actions/download-artifact@v4
121+
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
119122
with:
120123
path: dist
121124
pattern: libs-${{ env.libs_branch }}-*
@@ -125,7 +128,7 @@ jobs:
125128
run: bash ./tools/combine-artifacts.sh
126129

127130
- name: Upload full esp32-arduino-libs archive
128-
uses: actions/upload-artifact@v4
131+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
129132
with:
130133
name: esp32-arduino-libs-${{ env.libs_branch }}
131134
path: dist/esp32-arduino-libs.zip
@@ -154,7 +157,7 @@ jobs:
154157
bash ./tools/push-to-arduino.sh
155158
156159
- name: Upload package_esp32_index.template.json
157-
uses: actions/upload-artifact@v4
160+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
158161
with:
159162
name: package-esp32-index-json-${{ env.libs_branch }}
160163
path: out/package_esp32_index.template.json

.github/workflows/docker.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,23 +66,23 @@ jobs:
6666
echo "URL: $URL"
6767
6868
- name: Checkout
69-
uses: actions/checkout@v4
69+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7070

7171
- name: Login to Docker Hub
7272
if: ${{ github.event_name == 'push' }}
73-
uses: docker/login-action@v3
73+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
7474
with:
7575
username: ${{ secrets.DOCKERHUB_USERNAME }}
7676
password: ${{ secrets.DOCKERHUB_TOKEN }}
7777

7878
- name: Set up QEMU for multiarch builds
79-
uses: docker/setup-qemu-action@v3
79+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
8080

8181
- name: Set up Docker Buildx
82-
uses: docker/setup-buildx-action@v3
82+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
8383

8484
- name: Build and push
85-
uses: docker/build-push-action@v5
85+
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
8686
with:
8787
context: tools/docker
8888
push: ${{ github.event_name == 'push' }}
@@ -94,7 +94,7 @@ jobs:
9494
9595
- name: Update Docker Hub repository description (master branch)
9696
if: ${{ github.event_name == 'push' && github.ref_type == 'branch' && github.ref_name == 'master' }}
97-
uses: peter-evans/dockerhub-description@v4
97+
uses: peter-evans/dockerhub-description@e98e4d1628a5f3be2be7c231e50981aee98723ae # v4.0.0
9898
with:
9999
username: ${{ secrets.DOCKERHUB_USERNAME }}
100100
password: ${{ secrets.DOCKERHUB_TOKEN }}

.github/workflows/push.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
target: [esp32, esp32s2, esp32s3, esp32c2, esp32c3, esp32c6, esp32h2, esp32p4]
2929
fail-fast: false
3030
steps:
31-
- uses: actions/checkout@v4
31+
- name: Checkout repository
32+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3233

3334
- name: Install dependencies
3435
run: bash ./tools/prepare-ci.sh
@@ -38,13 +39,13 @@ jobs:
3839

3940
- name: Upload build
4041
if: failure()
41-
uses: actions/upload-artifact@v4
42+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4243
with:
4344
name: build-${{ matrix.target }}
4445
path: build
4546

4647
- name: Upload archive
47-
uses: actions/upload-artifact@v4
48+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4849
with:
4950
name: artifacts-${{ matrix.target }}
5051
path: dist
@@ -55,7 +56,7 @@ jobs:
5556
runs-on: ubuntu-latest
5657
steps:
5758
- name: Download artifacts
58-
uses: actions/download-artifact@v4
59+
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
5960
with:
6061
path: dist
6162
pattern: artifacts-*
@@ -69,13 +70,13 @@ jobs:
6970
cp out/package_esp32_index.template.json dist/package_esp32_index.template.json
7071
7172
- name: Upload full esp32-arduino-libs archive
72-
uses: actions/upload-artifact@v4
73+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7374
with:
7475
name: esp32-arduino-libs
7576
path: dist/esp32-arduino-libs.tar.gz
7677

7778
- name: Upload package_esp32_index.template.json
78-
uses: actions/upload-artifact@v4
79+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7980
with:
8081
name: package-esp32-index-json
8182
path: dist/package_esp32_index.template.json

.github/workflows/repository_dispatch.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,30 @@ jobs:
77
name: Dispatch Event
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v4
10+
- name: Checkout repository
11+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1112
with:
1213
fetch-depth: 0
14+
1315
- name: Install dependencies
1416
run: bash ./tools/prepare-ci.sh
17+
1518
- name: Handle Event
1619
env:
1720
GITHUB_TOKEN: ${{ secrets.PUSH_TOKEN }}
1821
GIT_AUTHOR_EMAIL: ${{ secrets.PUSH_EMAIL }}
1922
GIT_COMMITTER_EMAIL: ${{ secrets.PUSH_EMAIL }}
2023
run: bash ./tools/repository_dispatch.sh
24+
2125
- name: Upload build
2226
if: failure()
23-
uses: actions/upload-artifact@v4
27+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
2428
with:
2529
name: build
2630
path: build
31+
2732
- name: Upload archive
28-
uses: actions/upload-artifact@v4
33+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
2934
with:
3035
name: artifacts
3136
path: dist

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy