chore(ci): pin actions to shas (#3769)
This commit is contained in:
18
.github/workflows/android-device-test.yml
vendored
18
.github/workflows/android-device-test.yml
vendored
@@ -78,9 +78,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository_owner == 'maplibre' && github.event.workflow_run.conclusion == 'success'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
@@ -100,7 +100,7 @@ jobs:
|
||||
id: get-pr-number
|
||||
|
||||
- name: Generate token
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2
|
||||
id: generate_token
|
||||
with:
|
||||
skip-token-revoke: true # revoking will fail for long running workflows, because the token will already have expired
|
||||
@@ -109,7 +109,7 @@ jobs:
|
||||
|
||||
- name: Check if comment on PR contains '!benchmark android'
|
||||
if: matrix.test.name == 'Android Benchmark' && steps.get-pr-number.outputs.pr-number
|
||||
uses: peter-evans/find-comment@v3
|
||||
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3
|
||||
id: benchmark_comment
|
||||
with:
|
||||
issue-number: ${{ steps.get-pr-number.outputs.pr-number }}
|
||||
@@ -126,7 +126,7 @@ jobs:
|
||||
run:
|
||||
echo "run_device_test=true" >> "$GITHUB_ENV"
|
||||
|
||||
- uses: LouisBrunner/checks-action@v2.0.0
|
||||
- uses: LouisBrunner/checks-action@6b626ffbad7cc56fd58627f774b9067e6118af23 # v2.0.0
|
||||
id: create_check
|
||||
with:
|
||||
token: ${{ steps.generate_token.outputs.token }}
|
||||
@@ -143,7 +143,7 @@ jobs:
|
||||
|
||||
- name: Configure AWS Credentials
|
||||
if: env.run_device_test == 'true'
|
||||
uses: aws-actions/configure-aws-credentials@v4
|
||||
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4
|
||||
with:
|
||||
aws-region: us-west-2
|
||||
role-to-assume: ${{ vars.OIDC_AWS_ROLE_TO_ASSUME }}
|
||||
@@ -196,20 +196,20 @@ jobs:
|
||||
|
||||
- name: Upload Test Artifacts
|
||||
if: (matrix.test.name == 'Android Benchmark' || failure()) && env.run_device_test == 'true'
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: "Test Artifacts ${{ matrix.test.name }}"
|
||||
path: test_artifacts.zip
|
||||
|
||||
- name: Generate another token (previous one could have expired)
|
||||
if: always()
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2
|
||||
id: generate_token_2
|
||||
with:
|
||||
app-id: ${{ secrets.MAPLIBRE_NATIVE_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.MAPLIBRE_NATIVE_BOT_PRIVATE_KEY }}
|
||||
|
||||
- uses: LouisBrunner/checks-action@v2.0.0
|
||||
- uses: LouisBrunner/checks-action@6b626ffbad7cc56fd58627f774b9067e6118af23 # v2.0.0
|
||||
if: always()
|
||||
with:
|
||||
token: ${{ steps.generate_token_2.outputs.token }}
|
||||
|
||||
Reference in New Issue
Block a user