Skip to content

Commit 08d5f3c

Browse files
authored
Pin GitHub Actions to commit (#13569)
This is an automated PR to update actions in this repo. The operation should be no-op, as we are only switching out the version tag with the matching commit SHA. To align with industry best practices, we are going to pin Github Actions to a specific commit SHA. To read more about why pinning actions is recommended check [here](https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions). To ensure these Actions stay to-do-date, this PR also enables Dependabot automated updates. To read more about this configuration check [here](https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot). If allowed, this PR will attempt to auto-merge in ~1 week.
1 parent aae1b41 commit 08d5f3c

15 files changed

+44
-40
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
version: 2
22

33
updates:
4+
- package-ecosystem: github-actions
5+
directory: "/"
6+
schedule:
7+
interval: weekly
48
- package-ecosystem: npm
59
directory: '/'
610
schedule:

.github/workflows/changelog.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout branch
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2222
with:
2323
fetch-depth: 0
2424

2525
- name: Setup pnpm
26-
uses: pnpm/action-setup@v3
26+
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
2727

2828
- name: Setup Node from .nvmrc
29-
uses: actions/setup-node@v4
29+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3030
with:
3131
node-version-file: '.nvmrc'
3232

.github/workflows/ci-a11y-vrt.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout branch
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2727

2828
- name: Free up space on GitHub image
2929
run: |
@@ -35,17 +35,17 @@ jobs:
3535
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
3636
3737
- name: Setup pnpm
38-
uses: pnpm/action-setup@v3
38+
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
3939

4040
- name: Setup Node from .nvmrc
41-
uses: actions/setup-node@v4
41+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
4242
with:
4343
node-version-file: '.nvmrc'
4444
cache: pnpm
4545

4646
- name: Restore node_module cache
4747
id: node-cache
48-
uses: actions/cache@v3
48+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
4949
with:
5050
path: |
5151
**/.turbo
@@ -79,7 +79,7 @@ jobs:
7979
# it out for us.
8080
- name: Restore Playwright cache
8181
id: playwright-cache
82-
uses: actions/cache@v3
82+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
8383
with:
8484
path: ~/.cache/ms-playwright
8585
key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
@@ -121,21 +121,21 @@ jobs:
121121
runs-on: ubuntu-latest
122122
steps:
123123
- name: Checkout branch
124-
uses: actions/checkout@v3
124+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
125125
with:
126126
fetch-depth: 0 # Chromatic git history to track changes
127127

128128
- name: Setup pnpm
129-
uses: pnpm/action-setup@v3
129+
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
130130

131131
- name: Setup Node from .nvmrc
132-
uses: actions/setup-node@v4
132+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
133133
with:
134134
node-version-file: '.nvmrc'
135135
cache: pnpm
136136

137137
- name: Restore cache
138-
uses: actions/cache@v3
138+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
139139
with:
140140
path: |
141141
**/.turbo
@@ -159,7 +159,7 @@ jobs:
159159
STORYBOOK_GITHUB_PR: ${{ github.event.number }}
160160

161161
- name: Run Chromatic tests
162-
uses: chromaui/action@v1
162+
uses: chromaui/action@c93e0bc3a63aa176e14a75b61a31847cbfdd341c # v11.27.0
163163
with:
164164
token: ${{ secrets.GITHUB_TOKEN }}
165165
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

.github/workflows/ci-lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout branch
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1717
with:
1818
fetch-depth: 2
1919

@@ -27,16 +27,16 @@ jobs:
2727
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
2828
2929
- name: Setup pnpm
30-
uses: pnpm/action-setup@v3
30+
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
3131

3232
- name: Setup Node from .nvmrc
33-
uses: actions/setup-node@v4
33+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3434
with:
3535
node-version-file: '.nvmrc'
3636
cache: pnpm
3737

3838
- name: Restore cache
39-
uses: actions/cache@v3
39+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
4040
with:
4141
path: |
4242
**/.eslintcache

.github/workflows/ci-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
]
2222
steps:
2323
- name: Checkout branch
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2525
with:
2626
fetch-depth: 2
2727

@@ -35,17 +35,17 @@ jobs:
3535
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
3636
3737
- name: Setup pnpm
38-
uses: pnpm/action-setup@v3
38+
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
3939

4040
- name: Setup Node with v${{ matrix.node-version }}
41-
uses: actions/setup-node@v4
41+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
4242
id: setup_node
4343
with:
4444
node-version: ${{ matrix.node-version }}
4545
cache: pnpm
4646

4747
- name: Restore cache
48-
uses: actions/cache@v3
48+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
4949
with:
5050
path: |
5151
**/.eslintcache

.github/workflows/dependabot-auto-merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
steps:
2424
- name: Dependabot metadata
2525
id: metadata
26-
uses: dependabot/fetch-metadata@v2
26+
uses: dependabot/fetch-metadata@d7267f607e9d3fb96fc2fbe83e0af444713e90b7 # v2.3.0
2727
with:
2828
github-token: '${{ secrets.GITHUB_TOKEN }}'
2929
- name: Enable auto-merge for Dependabot PRs
3030
if: ${{ steps.metadata.outputs.update-type != 'version-update:semver-major' }}
31-
uses: actions/github-script@v7
31+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
3232
with:
3333
github-token: '${{ secrets.GITHUB_TOKEN }}'
3434
script: |

.github/workflows/deploy-polaris.shopify.com.yml

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

1414
steps:
1515
- name: Trigger deploy polaris.shopify.com
16-
uses: actions/github-script@v6
16+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
1717
with:
1818
github-token: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}
1919
script: |

.github/workflows/major-version-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout code
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2222

2323
- name: Fetch all branches
2424
run: git fetch --all

.github/workflows/migrator-comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout code
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2323

2424
- name: Fetch all branches
2525
run: git fetch --all

.github/workflows/non-committable.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ jobs:
99
check:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
- uses: dorny/paths-filter@v2
12+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
13+
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
1414
id: filter
1515
with:
1616
filters: |

0 commit comments

Comments
 (0)