Skip to content

Commit de3ff10

Browse files
authored
Pin GitHub Actions to commit SHAs (#2114)
Signed-off-by: Yulong Ruan <ruanyl@amazon.com>
1 parent e5b54a8 commit de3ff10

32 files changed

Lines changed: 105 additions & 105 deletions

.github/workflows/alerting-release-e2e-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
outputs:
99
tests: ${{ steps.filter.outputs.tests }}
1010
steps:
11-
- uses: dorny/paths-filter@v2
11+
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2
1212
id: filter
1313
with:
1414
filters: |

.github/workflows/anomaly-detection-release-e2e-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
outputs:
99
tests: ${{ steps.filter.outputs.tests }}
1010
steps:
11-
- uses: dorny/paths-filter@v2
11+
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2
1212
id: filter
1313
with:
1414
filters: |

.github/workflows/backport.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- name: GitHub App token
1717
id: github_app_token
18-
uses: tibdex/github-app-token@v1.5.0
18+
uses: tibdex/github-app-token@1901dc7d52169e70c27a8da37aef0d423e2867a2 # v1.5.0
1919
with:
2020
app_id: ${{ secrets.APP_ID }}
2121
private_key: ${{ secrets.APP_PRIVATE_KEY }}
@@ -25,7 +25,7 @@ jobs:
2525
# Using fork of https://github.com/tibdex/backport
2626
# https://github.com/tibdex/backport/pull/81
2727
- name: Backport
28-
uses: VachaShah/backport@v1.1.4
28+
uses: VachaShah/backport@28c49d91ceec57d7c9f625f1031c1a4d637251f5 # v1.1.4
2929
with:
3030
github_token: ${{ steps.github_app_token.outputs.token }}
3131
branch_name: backport/backport-${{ github.event.number }}

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v2
41+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v1
45+
uses: github/codeql-action/init@231aa2c8a89117b126725a0e11897209b7118144 # v1
4646
with:
4747
languages: ${{ matrix.language }}
4848
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -53,7 +53,7 @@ jobs:
5353
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5454
# If this step fails, then you should remove it and run the build manually (see below)
5555
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v1
56+
uses: github/codeql-action/autobuild@231aa2c8a89117b126725a0e11897209b7118144 # v1
5757

5858
# ℹ️ Command-line programs to run using the OS shell.
5959
# 📚 https://git.io/JvXDl
@@ -67,4 +67,4 @@ jobs:
6767
# make release
6868

6969
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@v1
70+
uses: github/codeql-action/analyze@231aa2c8a89117b126725a0e11897209b7118144 # v1

.github/workflows/custom-import-map-dashboards-release-e2e-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
outputs:
99
tests: ${{ steps.filter.outputs.tests }}
1010
steps:
11-
- uses: dorny/paths-filter@v2
11+
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2
1212
id: filter
1313
with:
1414
filters: |

.github/workflows/cypress-workflow-bundle-snapshot-based-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
outputs:
1212
tests: ${{ steps.filter.outputs.tests }}
1313
steps:
14-
- uses: dorny/paths-filter@v2
14+
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2
1515
id: filter
1616
with:
1717
filters: |

.github/workflows/cypress-workflow-bundle-snapshot-based.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
outputs:
1212
tests: ${{ steps.filter.outputs.tests }}
1313
steps:
14-
- uses: dorny/paths-filter@v2
14+
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2
1515
id: filter
1616
with:
1717
filters: |

.github/workflows/cypress-workflow-vanilla-snapshot-based.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
TERM: xterm
2020
steps:
2121
- name: Set up JDK
22-
uses: actions/setup-java@v1
22+
uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1
2323
with:
2424
java-version: 14
2525
- name: Checkout monetery-test
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
2727
with:
2828
repository: ${{github.repository}}
2929
path: monetery-test
@@ -59,7 +59,7 @@ jobs:
5959
echo "cypress_version=$cypress_version_temp" >> $GITHUB_ENV
6060
- name: Cache Cypress
6161
id: cache-cypress
62-
uses: actions/cache@v1
62+
uses: actions/cache@f5ce41475b483ad7581884324a6eca9f48f8dcc7 # v1
6363
with:
6464
path: ~/.cache/Cypress
6565
key: cypress-cache-v2-${{ runner.os }}-${{ hashFiles('**/package.json') }}
@@ -68,25 +68,25 @@ jobs:
6868
- run: npx cypress cache list
6969
- run: npx cypress cache path
7070
- name: Cypress tests
71-
uses: cypress-io/github-action@v2
71+
uses: cypress-io/github-action@f5bea478b80a774068179089247f13d60abc5010 # v2
7272
with:
7373
working-directory: monetery-test
7474
command: yarn cypress:run-without-security --browser chromium --spec 'cypress/integration/core-opensearch-dashboards/vanilla-opensearch-dashboards/*.js'
7575
wait-on: 'http://localhost:5601'
7676
# Screenshots are only captured on failure, will change this once we do visual regression tests
77-
- uses: actions/upload-artifact@v1
77+
- uses: actions/upload-artifact@3446296876d12d4e3a0f3145a3c87e67bf0a16b5 # v1
7878
if: failure()
7979
with:
8080
name: cypress-screenshots
8181
path: monetery-test/cypress/screenshots
8282
# Test run video was always captured, so this action uses "always()" condition
83-
- uses: actions/upload-artifact@v1
83+
- uses: actions/upload-artifact@3446296876d12d4e3a0f3145a3c87e67bf0a16b5 # v1
8484
if: always()
8585
with:
8686
name: cypress-videos
8787
path: monetery-test/cypress/videos
8888
# Test reports was always captured, so this action uses "always()" condition
89-
- uses: actions/upload-artifact@v1
89+
- uses: actions/upload-artifact@3446296876d12d4e3a0f3145a3c87e67bf0a16b5 # v1
9090
if: always()
9191
with:
9292
name: cypress-results

.github/workflows/delete_backport_branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
if: startsWith(github.event.pull_request.head.ref,'backport/')
1111
steps:
1212
- name: Delete merged branch
13-
uses: SvanBoxel/delete-merged-branch@main
13+
uses: SvanBoxel/delete-merged-branch@2b5b058e3db41a3328fd9a6a58fd4c2545a14353 # main
1414
env:
1515
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/gantt-chart-release-e2e-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
outputs:
99
tests: ${{ steps.filter.outputs.tests }}
1010
steps:
11-
- uses: dorny/paths-filter@v2
11+
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2
1212
id: filter
1313
with:
1414
filters: |

0 commit comments

Comments
 (0)