Skip to content

Commit 40f04fb

Browse files
committed
Pin actions to SHA and use Microsoft JDK in publish-snapshot workflow
- Pin actions/checkout to de0fac2e @ v6.0.2 - Pin actions/setup-java to be666c2f @ v5 - Switch JDK distribution from temurin to microsoft Cherry-picked from edburns/dd-2785864-pre-public-non-code-changes
1 parent 6c9e8d2 commit 40f04fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish-snapshot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ jobs:
1818
name: Publish SNAPSHOT to Maven Central
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v6
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222
with:
2323
fetch-depth: 0
2424

2525
- uses: ./.github/actions/setup-copilot
2626

2727
- name: Set up JDK 17
28-
uses: actions/setup-java@v5
28+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
2929
with:
3030
java-version: "17"
31-
distribution: "temurin"
31+
distribution: "microsoft"
3232
cache: "maven"
3333
server-id: central
3434
server-username: MAVEN_USERNAME

0 commit comments

Comments
 (0)