Skip to content

Commit 9929a7b

Browse files
authored
Move GitHub Action versions to shas
2 parents cf33d45 + edd2bf0 commit 9929a7b

26 files changed

+98
-99
lines changed

.github/allowed-actions.js

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,34 @@
44
// can be added it this list.
55

66
module.exports = [
7-
'actions/cache@v1',
8-
'actions/cache@v2',
9-
'actions/checkout@v2',
10-
'actions/github-script@0.9.0',
11-
'actions/github-script@v2.0.0',
12-
'actions/github-script@v2',
13-
'actions/github-script@v3',
14-
'actions/labeler@v2',
15-
'actions/setup-node@v1',
16-
'actions/setup-ruby@v1',
17-
'actions/stale@v3',
18-
'crowdin/github-action@1.0.10',
19-
'dawidd6/action-delete-branch@v3',
20-
'docker://chinthakagodawita/autoupdate-action:v1',
7+
'actions/cache@70655ec8323daeeaa7ef06d7c56e1b9191396cbe',
8+
'actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16',
9+
'actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675',
10+
'actions/github-script@5d03ada4b0a753e9460b312e61cc4f8fdeacf163',
11+
'actions/github-script@6e5ee1dc1cb3740e5e5e76ad668e3f526edbfe45',
12+
'actions/github-script@44b873bc975058192f5279ebe7579496381f575d',
13+
'actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9',
14+
'actions/labeler@5f867a63be70efff62b767459b009290364495eb',
15+
'actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d',
16+
'actions/setup-ruby@5f29a1cd8dfebf420691c4c9a0e832e2fae5a526',
17+
'actions/stale@44f9eae0adddf72dbf3eedfacc999f70afcec1a8',
18+
'crowdin/github-action@fd9429dd63d6c0f8a8cb4b93ad8076990bd6e688',
19+
'dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911',
20+
'docker://chinthakagodawita/autoupdate-action:4d72a15b5989091e07d6f4ce4cd3afb7b835ad1e68190937df778b702a547cdc',
2121
'fkirc/skip-duplicate-actions@a12175f6209d4805b5a163d723270be2a0dc7b36',
2222
'github/codeql-action/analyze@v1',
2323
'github/codeql-action/init@v1',
24-
'ianwalter/puppeteer@3.0.0',
25-
'juliangruber/approve-pull-request-action@v1',
26-
'juliangruber/find-pull-request-action@v1',
27-
'juliangruber/read-file-action@v1',
24+
'ianwalter/puppeteer@12728ddef82390d1ecd4732fb543f62177392fbb',
25+
'juliangruber/approve-pull-request-action@c530832d4d346c597332e20e03605aa94fa150a8',
26+
'juliangruber/find-pull-request-action@64d55773c959748ad30a4184f4dc102af1669f7b',
27+
'juliangruber/read-file-action@e0a316da496006ffd19142f0fd594a1783f3b512',
2828
'pascalgn/automerge-action@c9bd182',
29-
'peter-evans/create-issue-from-file@v2',
30-
'peter-evans/create-pull-request@v2',
31-
'rachmari/actions-add-new-issue-to-column@v1.1.1',
32-
'rachmari/labeler@v1.0.4',
33-
'repo-sync/github-sync@v2',
34-
'repo-sync/pull-request@v2',
35-
'rtCamp/action-slack-notify@master',
36-
'rtCamp/action-slack-notify@v2.1.0',
29+
'peter-evans/create-issue-from-file@35e304e2a12caac08c568247a2cb46ecd0c3ecc5',
30+
'peter-evans/create-pull-request@938e6aea6f8dbdaced2064e948cb806c77fe87b8',
31+
'rachmari/actions-add-new-issue-to-column@1a459ef92308ba7c9c9dc2fcdd72f232495574a9',
32+
'rachmari/labeler@832d42ec5523f3c6d46e8168de71cd54363e3e2e',
33+
'repo-sync/github-sync@3832fe8e2be32372e1b3970bbae8e7079edeec88',
34+
'repo-sync/pull-request@ea6773388b83b337e4da9a223293309f2c3670e7',
35+
'rtCamp/action-slack-notify@e17352feaf9aee300bf0ebc1dfbf467d80438815',
3736
'tjenkinson/gh-action-auto-merge-dependency-updates@cee2ac0'
3837
]

.github/workflows/60-days-stale-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@v3
10+
- uses: actions/stale@44f9eae0adddf72dbf3eedfacc999f70afcec1a8
1111
with:
1212
repo-token: ${{ secrets.GITHUB_TOKEN }}
1313
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity.'

.github/workflows/auto-label-prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ jobs:
77
if: github.repository == 'github/docs-internal'
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/labeler@v2
10+
- uses: actions/labeler@5f867a63be70efff62b767459b009290364495eb
1111
with:
1212
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/autoupdate-branch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
name: autoupdate
99
runs-on: ubuntu-18.04
1010
steps:
11-
- uses: docker://chinthakagodawita/autoupdate-action:v1
11+
- uses: docker://chinthakagodawita/autoupdate-action:4d72a15b5989091e07d6f4ce4cd3afb7b835ad1e68190937df778b702a547cdc
1212
env:
1313
GITHUB_TOKEN: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
1414
PR_FILTER: labelled
1515
PR_LABELS: autoupdate
16-
MERGE_MSG: "Branch was updated using the 'autoupdate branch' Actions workflow."
16+
MERGE_MSG: "Branch was updated using the 'autoupdate branch' Actions workflow."

.github/workflows/browser-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ jobs:
2525
# Even if if doesn't do anything
2626
- if: ${{ needs.see_if_should_skip.outputs.should_skip == 'false' }}
2727
name: Checkout
28-
uses: actions/checkout@v2
28+
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
2929

3030
- if: ${{ needs.see_if_should_skip.outputs.should_skip == 'false' }}
3131
name: Install
32-
uses: ianwalter/puppeteer@3.0.0
32+
uses: ianwalter/puppeteer@12728ddef82390d1ecd4732fb543f62177392fbb
3333
with:
3434
args: npm ci
3535

3636
- if: ${{ needs.see_if_should_skip.outputs.should_skip == 'false' }}
3737
name: Test
38-
uses: ianwalter/puppeteer@3.0.0
38+
uses: ianwalter/puppeteer@12728ddef82390d1ecd4732fb543f62177392fbb
3939
with:
4040
args: npm run browser-test

.github/workflows/check-all-english-links.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
if: github.repository == 'github/docs-internal'
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
1414
- name: npm ci
1515
run: npm ci
1616
- name: npm run build
@@ -28,7 +28,7 @@ jobs:
2828
fi
2929
- if: ${{ steps.check.outputs.continue == 'yes' }}
3030
name: Create issue from file
31-
uses: peter-evans/create-issue-from-file@v2
31+
uses: peter-evans/create-issue-from-file@35e304e2a12caac08c568247a2cb46ecd0c3ecc5
3232
with:
3333
token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}
3434
title: ${{ steps.check.outputs.title }}

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
1919
- uses: github/codeql-action/init@v1
2020
with:
2121
languages: javascript # comma separated list of values from {go, python, javascript, java, cpp, csharp} (not YET ruby, sorry!)

.github/workflows/crowdin.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
1919

2020
- name: Sync
21-
uses: crowdin/github-action@1.0.10
21+
uses: crowdin/github-action@fd9429dd63d6c0f8a8cb4b93ad8076990bd6e688
2222
with:
2323
upload_translations: false
2424
download_translations: true

.github/workflows/first-responder-docs-content.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
steps:
1212
- name: Check if the event originated from a team member
13-
uses: actions/github-script@v2.0.0
13+
uses: actions/github-script@44b873bc975058192f5279ebe7579496381f575d
1414
id: set-result
1515
with:
1616
github-token: ${{secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES}}
@@ -35,13 +35,13 @@ jobs:
3535
console.log(`This issue or pull request was authored by an external contributor.`)
3636
return 'false'
3737
- name: Label external contributor pull requests with docs-content-fr
38-
uses: rachmari/labeler@v1.0.4
38+
uses: rachmari/labeler@832d42ec5523f3c6d46e8168de71cd54363e3e2e
3939
if: steps.set-result.outputs.result == 'false'
4040
with:
4141
repo-token: "${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}"
4242
add-labels: "docs-content-fr"
4343
- name: Triage to FR PR project column
44-
uses: rachmari/actions-add-new-issue-to-column@v1.1.1
44+
uses: rachmari/actions-add-new-issue-to-column@1a459ef92308ba7c9c9dc2fcdd72f232495574a9
4545
if: steps.set-result.outputs.result == 'false'
4646
with:
4747
action-token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}
@@ -58,7 +58,7 @@ jobs:
5858
GITHUB_CONTEXT: ${{ toJson(github) }}
5959
run: echo "$GITHUB_CONTEXT"
6060
- name: Remove card from project
61-
uses: actions/github-script@v2.0.0
61+
uses: actions/github-script@44b873bc975058192f5279ebe7579496381f575d
6262
with:
6363
github-token: ${{secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES}}
6464
result-encoding: string

.github/workflows/merged-notification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
if: github.event.repository.private == false && github.event.pull_request.merged && github.event.pull_request.base.ref == github.event.repository.default_branch
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/github-script@v3
10+
- uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
1111
with:
1212
script: |
1313
github.issues.createComment({

.github/workflows/pa11y.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Check out repo
11-
uses: actions/checkout@v2
11+
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
1212

1313
- name: Get npm cache directory
1414
id: npm-cache
1515
run: |
1616
echo "::set-output name=dir::$(npm config get cache)"
1717
1818
- name: Cache node modules
19-
uses: actions/cache@v2
19+
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
2020
with:
2121
path: ${{ steps.npm-cache.outputs.dir }}
2222
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/ping-staging-apps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
env:
1313
HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }}
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
1616
- name: npm ci
1717
run: npm ci
1818
- name: npm run build
1919
run: npm run build
2020
- name: Run script
21-
run: script/ping-staging-apps.js
21+
run: script/ping-staging-apps.js

.github/workflows/remove-unused-assets.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
echo 'The repo is currently frozen! Exiting this workflow.'
2020
exit 1 # prevents further steps from running
2121
- name: Checkout
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
2323
- name: npm ci
2424
run: npm ci
2525
- name: Run scripts
@@ -28,13 +28,13 @@ jobs:
2828
script/remove-extraneous-translation-files.js
2929
- name: Get script results to use in PR body
3030
id: results
31-
uses: juliangruber/read-file-action@v1
31+
uses: juliangruber/read-file-action@e0a316da496006ffd19142f0fd594a1783f3b512
3232
with:
3333
path: ./results.md
3434
- name: Remove script results file
3535
run: rm -rf ./results.md
3636
- name: Create pull request
37-
uses: peter-evans/create-pull-request@v2
37+
uses: peter-evans/create-pull-request@938e6aea6f8dbdaced2064e948cb806c77fe87b8
3838
with:
3939
# need to use a token with repo and workflow scopes for this step
4040
token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
@@ -49,7 +49,7 @@ jobs:
4949
branch: remove-unused-assets
5050
- if: ${{ failure() }}
5151
name: Delete remote branch (if previous steps failed)
52-
uses: dawidd6/action-delete-branch@v3
52+
uses: dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911
5353
with:
5454
github_token: ${{ secrets.GITHUB_TOKEN }}
5555
branches: remove-unused-assets

.github/workflows/repo-sync.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
exit 1 # prevents further steps from running
2828
2929
- name: Check out repo
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
3131

3232
- name: Sync repo to branch
33-
uses: repo-sync/github-sync@v2
33+
uses: repo-sync/github-sync@3832fe8e2be32372e1b3970bbae8e7079edeec88
3434
env:
3535
GITHUB_TOKEN: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
3636
with:
@@ -40,7 +40,7 @@ jobs:
4040
github_token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
4141

4242
- name: Create pull request
43-
uses: repo-sync/pull-request@v2
43+
uses: repo-sync/pull-request@ea6773388b83b337e4da9a223293309f2c3670e7
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
4646
with:
@@ -52,21 +52,21 @@ jobs:
5252
github_token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
5353

5454
- name: Find pull request
55-
uses: juliangruber/find-pull-request-action@v1
55+
uses: juliangruber/find-pull-request-action@64d55773c959748ad30a4184f4dc102af1669f7b
5656
id: find-pull-request
5757
with:
5858
github-token: ${{ secrets.GITHUB_TOKEN }}
5959
branch: repo-sync
6060

6161
- name: Approve pull request
6262
if: ${{ steps.find-pull-request.outputs.number }}
63-
uses: juliangruber/approve-pull-request-action@v1
63+
uses: juliangruber/approve-pull-request-action@c530832d4d346c597332e20e03605aa94fa150a8
6464
with:
6565
github-token: ${{ secrets.GITHUB_TOKEN }}
6666
number: ${{ steps.find-pull-request.outputs.number }}
6767

6868
- name: Send Slack notification if workflow fails
69-
uses: rtCamp/action-slack-notify@master
69+
uses: rtCamp/action-slack-notify@e17352feaf9aee300bf0ebc1dfbf467d80438815
7070
if: failure()
7171
env:
7272
SLACK_WEBHOOK: ${{ secrets.DOCS_ALERTS_SLACK_WEBHOOK }}

.github/workflows/send-eng-issues-to-backlog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- name: Add issues with engineering label to project board
1414
if: contains(github.event.issue.labels.*.name, 'engineering') || contains(github.event.issue.labels.*.name, 'design') || contains(github.event.issue.labels.*.name, 'Design')
15-
uses: actions/github-script@v2
15+
uses: actions/github-script@44b873bc975058192f5279ebe7579496381f575d
1616
with:
1717
github-token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}
1818
script: |

.github/workflows/start-new-engineering-pr-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
REGULAR_COLUMN_ID: 10095779
1414
steps:
1515
- name:
16-
uses: actions/github-script@v2
16+
uses: actions/github-script@44b873bc975058192f5279ebe7579496381f575d
1717
continue-on-error: true
1818
with:
1919
github-token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}

.github/workflows/sync-algolia-search-indices.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: checkout
15-
uses: actions/checkout@v2
16-
- uses: actions/setup-node@v1
15+
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
16+
- uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
1717
with:
1818
node-version: 14.x
1919
- name: cache node modules
20-
uses: actions/cache@v1
20+
uses: actions/cache@70655ec8323daeeaa7ef06d7c56e1b9191396cbe
2121
with:
2222
path: ~/.npm
2323
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -32,7 +32,7 @@ jobs:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3333
run: npm run sync-search
3434
- name: Send slack notification if workflow run fails
35-
uses: rtCamp/action-slack-notify@v2.1.0
35+
uses: rtCamp/action-slack-notify@e17352feaf9aee300bf0ebc1dfbf467d80438815
3636
if: failure()
3737
env:
3838
SLACK_WEBHOOK: ${{ secrets.DOCS_ALERTS_SLACK_WEBHOOK }}

.github/workflows/test-translations.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check out repo
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
1616
with:
1717
ref: translations # check out the 'translations' branch
1818

1919
- name: Setup node
20-
uses: actions/setup-node@v1
20+
uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
2121
with:
2222
node-version: 14.x
2323

@@ -27,7 +27,7 @@ jobs:
2727
echo "::set-output name=dir::$(npm config get cache)"
2828
2929
- name: Cache node modules
30-
uses: actions/cache@v2
30+
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
3131
with:
3232
path: ${{ steps.npm-cache.outputs.dir }}
3333
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -52,10 +52,10 @@ jobs:
5252
test-group: [content, meta, rendering, routing, unit, links-and-images]
5353
steps:
5454
- name: Check out repo
55-
uses: actions/checkout@v2
55+
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
5656

5757
- name: Setup node
58-
uses: actions/setup-node@v1
58+
uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
5959
with:
6060
node-version: 14.x
6161

@@ -65,7 +65,7 @@ jobs:
6565
echo "::set-output name=dir::$(npm config get cache)"
6666
6767
- name: Cache node modules
68-
uses: actions/cache@v2
68+
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
6969
with:
7070
path: ${{ steps.npm-cache.outputs.dir }}
7171
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

0 commit comments

Comments
 (0)