Skip to content

Commit 48a0339

Browse files
ci: Pin GitHub Actions to full-length commit SHAs (#1815)
Co-authored-by: Gavin Barron <gavinbarron@microsoft.com>
1 parent 8a7733e commit 48a0339

5 files changed

Lines changed: 11 additions & 9 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ updates:
1010
schedule:
1111
interval: daily
1212
open-pull-requests-limit: 10
13+
cooldown:
14+
default-days: 7

‎.github/workflows/pr-validation.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
php-versions: ['8.2', '8.3', '8.4', '8.5']
2323
steps:
2424
- name: Setup PHP
25-
uses: shivammathur/setup-php@v2
25+
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
2626
with:
2727
php-version: ${{ matrix.php-versions }}
28-
- uses: actions/checkout@v7
28+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2929
- name: Validate composer file
3030
run: |
3131
composer validate

‎.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/validate-generated-api-surface.yml‎

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

0 commit comments

Comments
 (0)