Skip to content

Commit e3e6897

Browse files
authored
Pin GitHub Actions to commit SHAs (#12459)
Signed-off-by: Divya Madala <divyaasm@amazon.com>
1 parent fe08963 commit e3e6897

11 files changed

Lines changed: 22 additions & 22 deletions

.github/workflows/automerge-backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
run: sleep 30
2121
- id: automerge
2222
name: automerge
23-
uses: "pascalgn/automerge-action@v0.16.2"
23+
uses: "pascalgn/automerge-action@58724c982461efbb7865b3762d7bff0d4756f57a # v0.16.2"
2424
env:
2525
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2626
MERGE_LABELS: "backport-automerge,!On hold"

.github/workflows/backport.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ jobs:
2727
steps:
2828
- name: GitHub App token
2929
id: github_app_token
30-
uses: tibdex/github-app-token@v1.5.0
30+
uses: tibdex/github-app-token@1901dc7d52169e70c27a8da37aef0d423e2867a2 # v1.5.0
3131
with:
3232
app_id: ${{ secrets.APP_ID }}
3333
private_key: ${{ secrets.APP_PRIVATE_KEY }}
3434
# opensearch-trigger-bot installation ID
3535
installation_id: 22958780
3636

3737
- name: Backport
38-
uses: VachaShah/backport@v2.1.0
38+
uses: VachaShah/backport@c2d4cc919ef00608e9a6c66373d6bd62a2748153 # v2.1.0
3939
with:
4040
github_token: ${{ steps.github_app_token.outputs.token }}
4141
head_template: backport/backport-<%= number %>-to-<%= base %>

.github/workflows/delete_merged_branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
!startsWith(github.event.pull_request.head.ref, 'version/')
1818
steps:
1919
- name: Delete merged branch
20-
uses: actions/github-script@v7
20+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
2121
with:
2222
github-token: ${{ secrets.GITHUB_TOKEN }}
2323
script: |

.github/workflows/encoding-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout repository
10-
uses: actions/checkout@v3
10+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
1111
- name: Check for possible file that does not follow utf-8 encoding
1212
run: |
1313
set +e

.github/workflows/jekyll-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: ruby/setup-ruby@v1
10+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
11+
- uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1
1212
with:
1313
ruby-version: '3.4.5'
1414
bundler-cache: true

.github/workflows/jekyll-spec-insert.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
lint-and-test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- uses: ruby/setup-ruby@v1
13+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
14+
- uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1
1515
with:
1616
ruby-version: '3.4.5'
1717
- run: bundle install

.github/workflows/label-prs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- name: Label draft PR as "In progress"
1515
if: github.event.pull_request.draft == true
16-
uses: actions/github-script@v7
16+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
1717
with:
1818
github-token: ${{ secrets.GITHUB_TOKEN }}
1919
script: |
@@ -37,7 +37,7 @@ jobs:
3737
3838
- name: Label non-draft PR as "Tech review"
3939
if: github.event.pull_request.draft == false
40-
uses: actions/github-script@v7
40+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
4141
with:
4242
github-token: ${{ secrets.GITHUB_TOKEN }}
4343
script: |

.github/workflows/link-checker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ jobs:
1111
if: github.repository == 'opensearch-project/documentation-website'
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
15-
- uses: ruby/setup-ruby@v1
14+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
15+
- uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1
1616
with:
1717
ruby-version: '3.4.5'
1818
bundler-cache: true
1919
- run: |
2020
JEKYLL_FATAL_LINK_CHECKER=all bundle exec jekyll build --future
2121
- name: Create Issue On Build Failure
2222
if: ${{ failure() }}
23-
uses: dblock/create-a-github-issue@v3
23+
uses: dblock/create-a-github-issue@a25e69ccb88998dc267170a0dbde8ef8ac3a491c # v3
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2626
WORKFLOW_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"

.github/workflows/pr_checklist.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Comment PR with checklist
16-
uses: peter-evans/create-or-update-comment@v3
16+
uses: peter-evans/create-or-update-comment@23ff15729ef2fc348714a3bb66d2f655ca9066f2 # v3
1717
with:
1818
token: ${{ secrets.GITHUB_TOKEN }}
1919
issue-number: ${{ github.event.pull_request.number }}
@@ -25,7 +25,7 @@ jobs:
2525
**When you're ready for doc review, tag the assignee of this PR**. The doc reviewer may push edits to the PR directly or leave comments and editorial suggestions for you to address (let us know in a comment if you have a preference).
2626
2727
- name: Auto assign PR to repo owner
28-
uses: actions/github-script@v6
28+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6
2929
with:
3030
script: |
3131
let assignee = context.payload.pull_request.user.login;

.github/workflows/update-api-components.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
contents: write
1212
pull-requests: write
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1515
with:
1616
submodules: recursive
1717
fetch-depth: 0
@@ -23,7 +23,7 @@ jobs:
2323
git config --global user.name "opensearch-trigger-bot[bot]"
2424
git config --global user.email "98922864+opensearch-trigger-bot[bot]@users.noreply.github.com"
2525
26-
- uses: ruby/setup-ruby@v1
26+
- uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1
2727
with:
2828
ruby-version: '3.4.5'
2929

@@ -38,13 +38,13 @@ jobs:
3838

3939
- name: GitHub App token
4040
id: github_app_token
41-
uses: tibdex/github-app-token@v2.1.0
41+
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
4242
with:
4343
app_id: ${{ secrets.APP_ID }}
4444
private_key: ${{ secrets.APP_PRIVATE_KEY }}
4545

4646
- name: Create pull request
47-
uses: peter-evans/create-pull-request@v6
47+
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6
4848
with:
4949
token: ${{ steps.github_app_token.outputs.token }}
5050
commit-message: "Updated API components to reflect the latest OpenSearch API spec (${{ env.date }})"

0 commit comments

Comments
 (0)