Skip to content

Commit fc236ce

Browse files
ci: Pin GitHub Actions to full-length commit SHAs (#1157)
Co-authored-by: Gavin Barron <gavinbarron@microsoft.com>
1 parent 0028cd3 commit fc236ce

5 files changed

Lines changed: 13 additions & 11 deletions

File tree

‎.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@v6
22+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
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/validatePullRequest.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
solutionName: Microsoft.Graph.Beta.sln
2020
projectName: src/Microsoft.Graph/Microsoft.Graph.Beta.csproj
2121
steps:
22-
- uses: actions/checkout@v6
22+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
2323
- name: Setup .NET
24-
uses: actions/setup-dotnet@v5.4.0
24+
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
2525
with:
2626
dotnet-version: |
2727
8.x
@@ -55,13 +55,13 @@ jobs:
5555
language: [ 'csharp' ]
5656
steps:
5757
- name: Checkout repository
58-
uses: actions/checkout@v6
58+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
5959
- name: Initialize CodeQL
60-
uses: github/codeql-action/init@v4
60+
uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
6161
with:
6262
languages: ${{ matrix.language }}
6363
- name: Setup .NET
64-
uses: actions/setup-dotnet@v5.4.0
64+
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
6565
with:
6666
dotnet-version: |
6767
8.x
@@ -71,4 +71,4 @@ jobs:
7171
- name: Build for netstandard2.0
7272
run: dotnet build ${{ env.projectName }} -f netstandard2.0 --no-restore -c Release --no-incremental
7373
- name: Perform CodeQL Analysis
74-
uses: github/codeql-action/analyze@v4
74+
uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0

0 commit comments

Comments
 (0)