Skip to content

Commit 77af9bc

Browse files
authored
Secure snapshot deploy workflow actions (#2763)
1 parent 95a4b90 commit 77af9bc

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,29 +443,31 @@ jobs:
443443
name: Deploy Java Snapshot
444444
runs-on: ubuntu-latest
445445
if: github.event_name == 'push' && github.ref_name == 'master'
446+
permissions:
447+
contents: read
446448
steps:
447449

448450
# We need to clone everything again for uploadToMaven.sh ...
449451
- name: Clone the repo
450-
uses: actions/checkout@v6
452+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
451453
with:
452454
fetch-depth: 1
453455

454456
# Setup jdk 21 used for building Maven-style artifacts
455457
- name: Setup the java environment
456-
uses: actions/setup-java@v5
458+
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
457459
with:
458460
distribution: 'temurin'
459461
java-version: '21'
460462

461463
- name: Download natives for android
462-
uses: actions/download-artifact@v8.0.1
464+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
463465
with:
464466
name: android-natives
465467
path: build/native
466468

467469
- name: Download natives for iOS
468-
uses: actions/download-artifact@v8.0.1
470+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
469471
with:
470472
name: ios-natives
471473
path: jme3-ios-native/template/META-INF/robovm/ios/libs/jme3-ios-native.xcframework

0 commit comments

Comments
 (0)