Skip to content

Commit f120633

Browse files
Pin GitHub Actions to full-length commit SHAs
1 parent 8b06331 commit f120633

6 files changed

Lines changed: 19 additions & 19 deletions

File tree

‎.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/ci-cd.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
GITHUB_RUN_NUMBER: ${{ github.run_number }}
1818
steps:
1919
- name: Setup .NET
20-
uses: actions/setup-dotnet@v6
20+
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
2121
with:
2222
dotnet-version: 8.0.x
2323

@@ -44,15 +44,15 @@ jobs:
4444
4545
- name: Checkout repository
4646
id: checkout_repo
47-
uses: actions/checkout@v7
47+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4848
with:
4949
token: ${{ secrets.GITHUB_TOKEN }}
5050
fetch-depth: 0
5151

5252
- if: steps.conditionals_handler.outputs.is_default_branch == 'true'
5353
name: Bump GH tag
5454
id: tag_generator
55-
uses: mathieudutour/github-tag-action@v6.2
55+
uses: mathieudutour/github-tag-action@a22cf08638b34d5badda920f9daf6e72c477b07b # v6.2
5656
with:
5757
github_token: ${{ secrets.GITHUB_TOKEN }}
5858
default_bump: false
@@ -129,7 +129,7 @@ jobs:
129129

130130
- name: Create and publish release
131131
id: create_release
132-
uses: softprops/action-gh-release@v3
132+
uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2
133133
with:
134134
name: OpenAPI.Net.OData v${{ needs.ci.outputs.latest_version }}
135135
tag_name: v${{ needs.ci.outputs.latest_version }}

‎.github/workflows/codeql-analysis.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v7
42+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4343

4444
- name: Setup .NET
45-
uses: actions/setup-dotnet@v6
45+
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
4646
with:
4747
dotnet-version: 8.0.x
4848

4949
# Initializes the CodeQL tools for scanning.
5050
- name: Initialize CodeQL
51-
uses: github/codeql-action/init@v4.37.6
51+
uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
5252
with:
5353
languages: ${{ matrix.language }}
5454
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -76,4 +76,4 @@ jobs:
7676
# make release
7777

7878
- name: Perform CodeQL Analysis
79-
uses: github/codeql-action/analyze@v4.37.6
79+
uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ jobs:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- name: Checkout repository
37-
uses: actions/checkout@v7
37+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3838

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

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

‎.github/workflows/sonarcloud.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,19 @@ jobs:
3636
runs-on: windows-latest
3737
steps:
3838
- name: Set up JDK 17
39-
uses: actions/setup-java@v5.7.0
39+
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
4040
with:
4141
distribution: 'adopt'
4242
java-version: 17
4343
- name: Setup .NET
44-
uses: actions/setup-dotnet@v6
44+
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
4545
with:
4646
dotnet-version: 8.0.x
47-
- uses: actions/checkout@v7
47+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4848
with:
4949
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
5050
- name: Cache SonarCloud packages
51-
uses: actions/cache@v6
51+
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
5252
with:
5353
path: ~/.sonar/cache
5454
key: ${{ runner.os }}-sonar

‎.github/workflows/validate-descriptions.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
outputs:
1414
matrix: ${{ steps.set-descriptions.outputs.matrix }}
1515
steps:
16-
- uses: actions/checkout@v7
16+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1717
- id: set-descriptions
1818
run: echo "::set-output name=matrix::$(ls test/**/Resources/*.{json,yaml} | sed 's/.*\///' | jq -R -s -c 'split("\n")[:-1]')"
1919

@@ -26,11 +26,11 @@ jobs:
2626
runs-on: ubuntu-latest
2727

2828
steps:
29-
- uses: actions/checkout@v7
29+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3030
with:
3131
submodules: recursive
3232

3333
- name: Validate description with redocly
34-
uses: fluximus-prime/redocly-cli-github-action@v1
34+
uses: fluximus-prime/redocly-cli-github-action@db9f109674644db10fa51723b7eb83938ed24f7d # v1
3535
with:
3636
args: 'lint test/Microsoft.OpenAPI.OData.Reader.Tests/Resources/${{ matrix.descriptions }} --max-problems 1000 --config redocly.yaml'

0 commit comments

Comments
 (0)