Skip to content

Commit 00904d0

Browse files
ci: Pin GitHub Actions to full-length commit SHAs (#3192)
1 parent 8139c5d commit 00904d0

7 files changed

Lines changed: 17 additions & 15 deletions

‎.github/dependabot.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ updates:
2525
schedule:
2626
interval: daily
2727
open-pull-requests-limit: 10
28+
cooldown:
29+
default-days: 7

‎.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/project-auto-add.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- name: Generate token
2020
id: generate_token
21-
uses: actions/create-github-app-token@v3
21+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
2222
with:
2323
app-id: ${{ secrets.GRAPHBOT_APP_ID }}
2424
private-key: ${{ secrets.GRAPHBOT_APP_PEM }}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ jobs:
1919
release:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v7
22+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2323

2424
- name: Generate GitHub App token
2525
id: app-token
26-
uses: actions/create-github-app-token@v3
26+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
2727
with:
2828
app-id: ${{ vars.RELEASE_PLEASE_TOKEN_PROVIDER_APP_ID }}
2929
private-key: ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM }}
3030

3131
- name: Release Please
32-
uses: googleapis/release-please-action@v5
32+
uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
3333
with:
3434
token: ${{ steps.app-token.outputs.token }}
3535
config-file: release-please-config.json

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ jobs:
1919
release:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v7
22+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2323

2424
- name: Generate GitHub App token
2525
id: app-token
26-
uses: actions/create-github-app-token@v3
26+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
2727
with:
2828
app-id: ${{ vars.RELEASE_PLEASE_TOKEN_PROVIDER_APP_ID }}
2929
private-key: ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM }}
3030

3131
- name: Release Please
32-
uses: googleapis/release-please-action@v5
32+
uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
3333
with:
3434
token: ${{ steps.app-token.outputs.token }}

‎.github/workflows/validatePublicAPISurface.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
validate-public-api-surface:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v7
19+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2020
- uses: microsoftgraph/kiota-dom-export-diff-tool/export@main
2121
id: generatePatch
2222
- uses: microsoftgraph/kiota-dom-export-diff-tool/tool@main
@@ -34,14 +34,14 @@ jobs:
3434
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3535
- name: Upload patch file as artifact
3636
if: always()
37-
uses: actions/upload-artifact@v7
37+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
3838
continue-on-error: true
3939
with:
4040
name: patch
4141
path: '*.patch'
4242
- name: Upload explanations file as artifact
4343
if: always()
44-
uses: actions/upload-artifact@v7
44+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
4545
continue-on-error: true
4646
with:
4747
name: explanations

‎.github/workflows/validatePullRequest.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
env:
1919
solutionName: Microsoft.Graph.sln
2020
steps:
21-
- uses: actions/checkout@v7
21+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2222
- name: Setup .NET
23-
uses: actions/setup-dotnet@v5.4.0
23+
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
2424
with:
2525
dotnet-version: 8.x
2626
- name: Initialize CodeQL
27-
uses: github/codeql-action/init@v4
27+
uses: github/codeql-action/init@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
2828
with:
2929
languages: csharp
3030
- name: Restore dependencies
@@ -34,4 +34,4 @@ jobs:
3434
- name: Test
3535
run: dotnet test ${{ env.solutionName }} --no-build --verbosity normal -c Release /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=opencover
3636
- name: Perform CodeQL Analysis
37-
uses: github/codeql-action/analyze@v4
37+
uses: github/codeql-action/analyze@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2

0 commit comments

Comments
 (0)