Skip to content

Commit 401af9d

Browse files
committed
Pin exact versions of GitHub Actions
To avoid supply chain attacks, pin GitHub Actions by the exact commit SHA rather than the tag.
1 parent dabd039 commit 401af9d

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,35 @@ jobs:
1818
name: ${{ inputs.environment }}
1919
url: ${{ inputs.url }}
2020
steps:
21-
- uses: actions/checkout@v6
22-
- uses: actions/setup-python@v6
21+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
22+
with:
23+
persist-credentials: false
24+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548
2325
with:
2426
python-version: 3.9
2527
- name: Install Python dependencies
26-
uses: py-actions/py-dependency-install@v4
28+
uses: py-actions/py-dependency-install@30aa0023464ed4b5b116bd9fbdab87acf01a484e
2729
- name: Install Python libs
2830
run: pip3 install -r ./requirements.txt
29-
- uses: ruby/setup-ruby@v1
31+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71
3032
with:
3133
ruby-version: 3.2
3234
bundler-cache: true
33-
- uses: seanmiddleditch/gha-setup-ninja@v6
35+
- uses: seanmiddleditch/gha-setup-ninja@3b1f8f94a2f8254bd26914c4ab9474d4f0015f67
3436
with:
3537
version: 1.10.2
3638
- name: Install arm-none-eabi-gcc GNU Arm Embedded Toolchain
3739
if: ${{ inputs.deploy }}
38-
uses: carlosperate/arm-none-eabi-gcc-action@v1.11.0
40+
uses: carlosperate/arm-none-eabi-gcc-action@8fef7ef8d847a80ae13af8dc08690d1dda844874
3941
- name: Install Doxygen
4042
if: ${{ inputs.deploy }}
4143
run: |
4244
wget https://www.doxygen.nl/files/doxygen-1.10.0.linux.bin.tar.gz
43-
tar xf doxygen-1.10.0.linux.bin.tar.gz -C "$HOME"
44-
echo "$HOME/doxygen-1.10.0/bin" >> $GITHUB_PATH
45+
if echo 'dcfc9aa4cc05aef1f0407817612ad9e9201d9bf2ce67cecf95a024bba7d39747 doxygen-1.10.0.linux.bin.tar.gz' | sha256sum --check --status
46+
then
47+
tar xf doxygen-1.10.0.linux.bin.tar.gz -C "$HOME"
48+
echo "$HOME/doxygen-1.10.0/bin" >> $GITHUB_PATH
49+
fi
4550
- name: Build Doxygen documentation
4651
if: ${{ inputs.deploy }}
4752
run: make build_doxygen_adoc

.github/workflows/mirror.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
mirror:
1111
runs-on: [self-hosted, web]
1212
steps:
13-
- uses: actions/checkout@v6
13+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
1414
with:
1515
ref: master
1616
token: ${{ secrets.DOCUMENTATION_REPO_TOKEN }}

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
pull-requests: write
1414

1515
steps:
16-
- uses: actions/stale@v10
16+
- uses: actions/stale@5f858e3efba33a5ca4407a664cc011ad407f2008
1717
with:
1818
repo-token: ${{ secrets.GITHUB_TOKEN }}
1919
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'

0 commit comments

Comments
 (0)