Skip to content

Commit 74e16bb

Browse files
authored
Merge pull request #371 from danfiedler-msft/danfiedler/pin-actions
Pin GitHub Actions to full-length commit SHAs
2 parents f18b06b + e1ff20a commit 74e16bb

11 files changed

Lines changed: 23 additions & 21 deletions

‎.github/dependabot.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,5 @@ updates:
5656
schedule:
5757
interval: "weekly"
5858
day: "monday"
59+
cooldown:
60+
default-days: 7

‎.github/workflows/close-inactive-issues.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
issues: write
1111
pull-requests: write
1212
steps:
13-
- uses: actions/stale@v11
13+
- uses: actions/stale@1e223db275d687790206a7acac4d1a11bd6fe629 # v10.4.0
1414
with:
1515
days-before-issue-stale: 90
1616
days-before-issue-close: 14

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ jobs:
3030

3131
steps:
3232
- name: Checkout repository
33-
uses: actions/checkout@v7
33+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3434

3535
# Initializes the CodeQL tools for scanning.
3636
- name: Initialize CodeQL
37-
uses: github/codeql-action/init@v4
37+
uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
3838
with:
3939
languages: ${{ matrix.language }}
4040
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -48,10 +48,10 @@ jobs:
4848
# If this step fails, then you should remove it and run the build manually (see below)
4949
- name: Autobuild
5050
if: ${{ matrix.language != 'java' }}
51-
uses: github/codeql-action/autobuild@v4
51+
uses: github/codeql-action/autobuild@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
5252

5353
- name: Setup JDK
54-
uses: actions/setup-java@v5
54+
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
5555
if: ${{ matrix.language == 'java' }}
5656
with:
5757
java-version: 17
@@ -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
76+
uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
7777
with:
7878
category: "/language:${{matrix.language}}"

‎.github/workflows/java-build.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v7
29+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3030

3131
# Need to use JDK 11 to build for JDK 8
3232
- name: Set JDK
@@ -41,7 +41,7 @@ jobs:
4141
fi
4242
4343
# Sets up the specified JDK version from the matrix
44-
- uses: actions/setup-java@v5
44+
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
4545
with:
4646
java-version: ${{ steps.set-jdk.outputs.JDK_VERSION }}
4747
distribution: microsoft
@@ -56,7 +56,7 @@ jobs:
5656
run: ./mvnw -B -Pbug-check -Pcompile-jdk${{ matrix.java-versions }} test --file pom.xml
5757

5858
# Uploads test artifacts for each JDK version
59-
- uses: actions/upload-artifact@v7
59+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
6060
if: always()
6161
with:
6262
name: test_output_sk_jdk${{ matrix.java-versions }}u

‎.github/workflows/java-integration-tests.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v7
25+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2626

2727
# Need to use JDK 11 to build for JDK 8
2828
- name: Set JDK
@@ -36,7 +36,7 @@ jobs:
3636
echo "JDK_VERSION=$version" >> $GITHUB_OUTPUT
3737
fi
3838
39-
- uses: actions/setup-java@v5
39+
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
4040
with:
4141
java-version: ${{ steps.set-jdk.outputs.JDK_VERSION }}
4242
distribution: microsoft

‎.github/workflows/java-publish-package.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v7
20+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2121

2222
# Sets up the specified JDK version from the matrix
23-
- uses: actions/setup-java@v5
23+
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
2424
with:
2525
java-version: 11
2626
distribution: microsoft
@@ -30,7 +30,7 @@ jobs:
3030
run: ./mvnw -B -DskipTests -Pcompile-jdk8 -P-compile-jdk17 clean deploy --file pom.xml -DaltDeploymentRepository=local::file:///tmp/target/staging-deploy
3131

3232
- name: Upload Artifacts
33-
uses: actions/upload-artifact@v7
33+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
3434
with:
3535
name: Artifacts
3636
path: /tmp/target/staging-deploy

‎.github/workflows/label-issues.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
permissions:
1414
issues: write
1515
steps:
16-
- uses: actions/github-script@v9
16+
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
1717
with:
1818
github-token: ${{ secrets.GH_ACTIONS_PR_WRITE }}
1919
script: |

‎.github/workflows/label-title-prefix.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
pull-requests: write
1616

1717
steps:
18-
- uses: actions/github-script@v9
18+
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
1919
name: "Issue/PR: update title"
2020
with:
2121
github-token: ${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/markdown-link-check.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414
# check out the latest version of the code
1515
steps:
16-
- uses: actions/checkout@v7
16+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1717

1818
# Checks the status of hyperlinks in .md files in verbose mode
1919
- name: Check links
20-
uses: gaurav-nelson/github-action-markdown-link-check@v1
20+
uses: gaurav-nelson/github-action-markdown-link-check@5c5dfc0ac2e225883c0e5f03a85311ec2830d368 # v1
2121
with:
2222
use-verbose-mode: "yes"
2323
config-file: ".github/workflows/markdown-link-check-config.json"

‎.github/workflows/merge-gatekeeper.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
# NOTE: v1 is updated to reflect the latest v1.x.y. Please use any tag/branch that suits your needs:
2424
# https://github.com/upsidr/merge-gatekeeper/tags
2525
# https://github.com/upsidr/merge-gatekeeper/branches
26-
uses: upsidr/merge-gatekeeper@v1
26+
uses: upsidr/merge-gatekeeper@09af7a82c1666d0e64d2bd8c01797a0bcfd3bb5d # v1.2.1
2727
if: github.event_name == 'pull_request'
2828
with:
2929
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)