Skip to content

Commit 332838b

Browse files
Merge pull request #7175 from github/pinner/actions-sha-pins-2026-09-10
Pin GitHub Actions to commit SHAs
2 parents 0a6ca22 + 5d3f64b commit 332838b

7 files changed

Lines changed: 22 additions & 14 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
cooldown:
8+
default-days: 7

‎.github/workflows/add-to-project.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Add issue to project
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/add-to-project@main
16+
- uses: actions/add-to-project@cbad230d1debaae844a2c6f675327ab6c537e0f1 # main
1717
with:
1818
project-url: https://github.com/orgs/github/projects/8014
1919
github-token: ${{ secrets.REST_PUBLIC_ADD_TO_PROJECT_TOKEN }}

‎.github/workflows/auto-merge-openapi-updates.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
detail: ${{ steps.merge.outputs.detail }}
7474
steps:
7575
- name: Checkout workflow scripts
76-
uses: actions/checkout@v4
76+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
7777
with:
7878
# Pinned to the default branch on purpose. A `workflow_dispatch` run
7979
# can be started from any ref, and without this the write-enabled job
@@ -86,7 +86,7 @@ jobs:
8686
sparse-checkout-cone-mode: false
8787

8888
- name: Set up Python
89-
uses: actions/setup-python@v5
89+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
9090
with:
9191
python-version: '3.12'
9292

@@ -245,7 +245,7 @@ jobs:
245245
246246
- name: Checkout repository (blobless)
247247
if: steps.checks.outputs.status == 'green' && steps.freeze.outputs.status == 'clear'
248-
uses: actions/checkout@v4
248+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
249249
with:
250250
# Pinned like the tools checkout so the comparison baseline is
251251
# provably the default branch, whatever ref a manual run was started

‎.github/workflows/linter.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
files: 'descriptions-next/**/*.yaml'
2222
steps:
2323
- name: Checkout Code
24-
uses: actions/checkout@v4
25-
- uses: actions/setup-python@v5
24+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
25+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2626
name: Install Python
2727
with:
2828
python-version: '3.12'
@@ -31,7 +31,7 @@ jobs:
3131
- run: yamllint -f parsable -c .yamllint-config.yml ${{matrix.files}}
3232
name: Run yamllint on ${{matrix.version}} descriptions
3333
- name: Install NodeJS
34-
uses: actions/setup-node@v4
34+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3535
with:
3636
node-version: '16'
3737
- name: Install Node modules
@@ -40,7 +40,7 @@ jobs:
4040
- name: JSON Lint
4141
run: npm run lint
4242
- name: OpenAPI Lint
43-
uses: mattpage/redocly-cli-lint-action@v0.0.1
43+
uses: mattpage/redocly-cli-lint-action@63f131fbfd009e0e32d01ccae6dbfbed3706ad88 # v0.0.1
4444
with:
4545
# TODO: use matrix.files variable when workflow is ready to process 3.1 files
4646
entrypoints: 'descriptions/**/*.yaml'

‎.github/workflows/release-notifier.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
notify:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: gr2m/release-notifier-action@v1
12+
- uses: gr2m/release-notifier-action@914377cb876747d1ee435f7ba20bdf42bcda2316 # v1
1313
with:
1414
# https://github.com/apps/openapi-release-notifier
1515
app_id: ${{ secrets.OPENAPI_RELEASE_NOTIFIER_APP_ID }}

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0
1818
- name: Build project # This would actually build your project, using zip for an example artifact
1919
run: |
2020
zip descriptions descriptions/**/*
2121
- name: Create Release
2222
id: create_release
23-
uses: actions/create-release@v1
23+
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e # v1.1.4
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2626
with:
@@ -30,7 +30,7 @@ jobs:
3030
prerelease: false
3131
- name: Upload Release Asset
3232
id: upload-release-asset
33-
uses: actions/upload-release-asset@v1
33+
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5 # v1.0.2
3434
env:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3636
with:

‎.github/workflows/scripts-tests.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Checkout Code
23-
uses: actions/checkout@v4
24-
- uses: actions/setup-python@v5
23+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
24+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
2525
name: Install Python
2626
with:
2727
python-version: '3.12'

0 commit comments

Comments
 (0)