[StepSecurity] ci: Harden GitHub Actions (#781)
* [StepSecurity] ci: Harden GitHub Actions in scorecards-analysis.yml
* [StepSecurity] ci: Harden GitHub Actions in test.yml
* [StepSecurity] ci: Harden GitHub Actions in build.yml
* [StepSecurity] ci: Harden GitHub Actions in mirror.yml
* [StepSecurity] ci: Harden GitHub Actions in release_deploy_play_store.yml
* [StepSecurity] ci: Harden GitHub Actions in release_deploy_web.yml
* [StepSecurity] ci: Harden GitHub Actions in release_draft_github_release.yml
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 39ad664..81ba0ab 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -18,7 +18,7 @@
target: ["apk --debug", "appbundle --debug", "ios --no-codesign", macos, web]
steps:
- name: Set up JDK 11
- uses: actions/setup-java@v3
+ uses: actions/setup-java@d854b6da19cdadd9a010605529e522c2393ebd38
with:
java-version: 11
distribution: temurin
diff --git a/.github/workflows/release_draft_github_release.yml b/.github/workflows/release_draft_github_release.yml
index bdf0635..39cb16e 100644
--- a/.github/workflows/release_draft_github_release.yml
+++ b/.github/workflows/release_draft_github_release.yml
@@ -78,7 +78,7 @@
sudo apt-get install -y libgtk-3-dev libx11-dev pkg-config cmake ninja-build libblkid-dev
- name: Install Android dependencies
if: matrix.target == 'Android'
- uses: actions/setup-java@v3
+ uses: actions/setup-java@d854b6da19cdadd9a010605529e522c2393ebd38
with:
java-version: "12.x"
distribution: temurin