Skip to content

Commit 3c0bcd3

Browse files
committed
Pin some github action version hashes
1 parent a7ae9e6 commit 3c0bcd3

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

.github/workflows/on_call_build_site.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ jobs:
3131
tar -czf _site.tar.gz _site
3232
3333
- name: upload site artifact
34-
uses: actions/upload-artifact@v4
34+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
3535
with:
3636
name: _site
3737
path: _site.tar.gz
3838
if-no-files-found: error
3939

4040
- name: upload httpd.conf artifact
41-
uses: actions/upload-artifact@v4
41+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4242
with:
4343
name: httpd.conf
4444
path: _drafts/staging/httpd.conf

.github/workflows/on_call_staging_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
steps:
99
- uses: actions/checkout@v4
1010
- name: Fetch site artifact
11-
uses: actions/download-artifact@v4.1.8
11+
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
1212
with:
1313
name: _site
1414
- name: extract site artifact

.github/workflows/on_push_to_master_test_and_deploy.yaml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,23 @@ jobs:
2323
needs: staging_test
2424
steps:
2525
- name: Fetch site artifact
26-
uses: actions/download-artifact@v4.1.8
26+
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
2727
with:
2828
name: _site
29+
2930
- name: extract site artifact
3031
run: |
3132
tar -xzf _site.tar.gz
33+
3234
- name: Fetch httpd conf artifact
33-
uses: actions/download-artifact@v4.1.8
35+
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
3436
with:
3537
name: httpd.conf
3638
path: _drafts/staging/httpd.conf
39+
3740
# Sync the files
3841
- name: Sync the site over
39-
uses: burnett01/rsync-deployments@5.2
42+
uses: burnett01/rsync-deployments@3cccb6851148e6198ed9ed89eb0d1c17b5e58cc7 # v7.0.2
4043
with:
4144
switches: -a
4245
path: _site/
@@ -55,34 +58,40 @@ jobs:
5558
deploy_oauth_config:
5659
runs-on: ubuntu-latest
5760
steps:
61+
5862
- uses: actions/checkout@v4
59-
- uses: dorny/paths-filter@v3
63+
64+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
6065
id: filter
6166
with:
6267
filters: |
6368
workflows:
6469
- '.github/workflows/**'
70+
6571
# see https://github.com/mcdeck/netlify-cms-oauth-provider-php
6672
- name: Checkout the netlify-cms-oauth-provider-php
6773
uses: actions/checkout@v4
6874
with:
6975
repository: mcdeck/netlify-cms-oauth-provider-php
7076
path: netlify-cms-oauth-provider-php
77+
7178
- name: Perform the netlify composer install
7279
if: steps.filter.outputs.workflows == 'true'
7380
run: |
7481
cd netlify-cms-oauth-provider-php
7582
composer install
83+
7684
- name: Copy over the netlify-cms-oauth-provider-php files
7785
if: steps.filter.outputs.workflows == 'true'
78-
uses: burnett01/rsync-deployments@5.2
86+
uses: burnett01/rsync-deployments@3cccb6851148e6198ed9ed89eb0d1c17b5e58cc7 # v7.0.2
7987
with:
8088
switches: -a
8189
path: netlify-cms-oauth-provider-php/
8290
remote_path: github-oauth2
8391
remote_host: home738752777.1and1-data.host
8492
remote_user: ${{ secrets.ORIONROBOTS_DEPLOY_USER }}
8593
remote_key: ${{ secrets.ORIONROBOTS_DEPLOY_KEY }}
94+
8695
- name: Create the oauth environment file
8796
if: steps.filter.outputs.workflows == 'true'
8897
run: |
@@ -91,9 +100,10 @@ jobs:
91100
echo "REDIRECT_URI=https://github-oauth2.orionrobots.co.uk/callback" >> netlify-cms-oauth-provider-php/.env.local
92101
echo "ORIGIN=https://orionrobots.co.uk" >> netlify-cms-oauth-provider-php/.env.local
93102
echo "APP_ENV=prod" >> netlify-cms-oauth-provider-php/.env.local
103+
94104
- name: Copy over the oauth environment file
95105
if: steps.filter.outputs.workflows == 'true'
96-
uses: burnett01/rsync-deployments@5.2
106+
uses: burnett01/rsync-deployments@3cccb6851148e6198ed9ed89eb0d1c17b5e58cc7 # v7.0.2
97107
with:
98108
switches: -a
99109
path: netlify-cms-oauth-provider-php/.env.local

0 commit comments

Comments
 (0)