Skip to content

Commit b57cc0e

Browse files
authored
Merge pull request #2159 from danfiedler-msft/danfiedler/pin-actions
Pin GitHub Actions to full-length commit SHAs
2 parents 999dcd5 + a705041 commit b57cc0e

6 files changed

Lines changed: 19 additions & 19 deletions

File tree

‎.github/workflows/api-level-lint.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ jobs:
1313
lint-api-level:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v7
17-
- uses: actions/setup-java@v5.7.0
16+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
17+
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
1818
with:
1919
distribution: 'temurin'
2020
java-version: 21
2121
cache: gradle
2222
- name: Setup Android SDK
23-
uses: android-actions/setup-android@v4.0.1
23+
uses: android-actions/setup-android@40fd30fb8d7440372e1316f5d1809ec01dcd3699 # v4.0.1
2424
- name: Build SDK with Android project configuration
2525
id: lint
2626
run: ./gradlew --no-daemon build -Pandroid=true
2727
- name: Upload linting results
2828
if: failure() && steps.lint.outcome == 'failure'
29-
uses: actions/upload-artifact@v7
29+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
3030
with:
3131
name: lint-report
3232
path: ./**/build/reports

‎.github/workflows/auto-merge-dependabot.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- name: Dependabot metadata
2121
id: metadata
22-
uses: dependabot/fetch-metadata@v3.1.0
22+
uses: dependabot/fetch-metadata@25dd0e34f4fe68f24cc83900b1fe3fe149efef98 # v3.1.0
2323
with:
2424
github-token: "${{ secrets.GITHUB_TOKEN }}"
2525

‎.github/workflows/build.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v7
14+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1515
- name: Setup JDK
16-
uses: actions/setup-java@v5.7.0
16+
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
1717
with:
1818
java-version: 21
1919
distribution: 'temurin'
@@ -22,14 +22,14 @@ jobs:
2222
run: ./gradlew --no-daemon build -Pjava8=true
2323
- name: Upload Unit Test Results
2424
if: ${{ always() }}
25-
uses: actions/upload-artifact@v7
25+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
2626
with:
2727
name: Unit Tests
2828
path: |
2929
components/**/build/reports/tests/test/**
3030
components/**/build-test-results/**
3131
- name: Upload a Build Artifact
32-
uses: actions/upload-artifact@v7
32+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
3333
with:
3434
name: ${{ inputs.componentName }}-drop
3535
path: ./**/build/*

‎.github/workflows/codeql.yml‎

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

4343
steps:
4444
- name: Checkout repository
45-
uses: actions/checkout@v7
45+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4646

4747
# Initializes the CodeQL tools for scanning.
4848
- name: Initialize CodeQL
49-
uses: github/codeql-action/init@v4.37.6
49+
uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
5050
with:
5151
languages: ${{ matrix.language }}
5252
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -60,7 +60,7 @@ jobs:
6060
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
6161
# If this step fails, then you should remove it and run the build manually (see below)
6262
- name: Autobuild
63-
uses: github/codeql-action/autobuild@v4.37.6
63+
uses: github/codeql-action/autobuild@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
6464

6565
# ℹ️ Command-line programs to run using the OS shell.
6666
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -73,6 +73,6 @@ jobs:
7373
# ./location_of_script_within_repo/buildscript.sh
7474

7575
- name: Perform CodeQL Analysis
76-
uses: github/codeql-action/analyze@v4.37.6
76+
uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
7777
with:
7878
category: "/language:${{matrix.language}}"

‎.github/workflows/release-please-gha.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ jobs:
3232
if: needs.check-secret.outputs.has-token == 'true'
3333
runs-on: ubuntu-latest
3434
steps:
35-
- uses: actions/checkout@v7
35+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3636

3737
- name: Generate GitHub App token
3838
id: app-token
39-
uses: actions/create-github-app-token@v3
39+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
4040
with:
4141
client-id: ${{ vars.RELEASE_PLEASE_TOKEN_PROVIDER_APP_ID }}
4242
private-key: ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM }}
4343

4444
- name: Release Please
45-
uses: googleapis/release-please-action@v5
45+
uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
4646
with:
4747
token: ${{ steps.app-token.outputs.token }}
4848
config-file: release-please-config.json

‎.github/workflows/sonarcloud.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ jobs:
1717
runs-on: ubuntu-latest
1818
if: ${{ ( github.event_name == 'push' ) || ( github.event_name == 'pull_request' && github.event.pull_request.head.repo.owner.login == 'microsoft' ) }}
1919
steps:
20-
- uses: actions/checkout@v7
20+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2121
with:
2222
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
2323
- name: Set up JDK
24-
uses: actions/setup-java@v5.7.0
24+
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
2525
with:
2626
java-version: 21
2727
distribution: 'temurin'
2828
cache: gradle
2929
- name: Cache SonarCloud packages
30-
uses: actions/cache@v6
30+
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
3131
with:
3232
path: ~/.sonar/cache
3333
key: ${{ runner.os }}-sonar

0 commit comments

Comments
 (0)