Skip to content

Build your personal knowledge base with Trilium Notes

ci: pin the third party actions in the composite actions

Elian Doran4315059cc44f
diff --git a/.github/actions/build-electron/action.yml b/.github/actions/build-electron/action.yml
index abc038a6a1..4e0359d091 100644
--- a/.github/actions/build-electron/action.yml
+++ b/.github/actions/build-electron/action.yml
@@ -21,7 +21,7 @@ runs:
# Certificate setup
- name: Import Apple certificates
if: inputs.os == 'macos'
- uses: apple-actions/import-codesign-certs@v7
+ uses: apple-actions/import-codesign-certs@5142e029c445c10ffc7149d172e540235a065466 # v7.0.0
with:
p12-file-base64: ${{ env.APPLE_APP_CERTIFICATE_BASE64 }}
p12-password: ${{ env.APPLE_APP_CERTIFICATE_PASSWORD }}
@@ -30,7 +30,7 @@ runs:
- name: Install Installer certificate
if: inputs.os == 'macos'
- uses: apple-actions/import-codesign-certs@v7
+ uses: apple-actions/import-codesign-certs@5142e029c445c10ffc7149d172e540235a065466 # v7.0.0
with:
p12-file-base64: ${{ env.APPLE_INSTALLER_CERTIFICATE_BASE64 }}
p12-password: ${{ env.APPLE_INSTALLER_CERTIFICATE_PASSWORD }}
diff --git a/.github/actions/build-mobile/action.yml b/.github/actions/build-mobile/action.yml
index e62a036592..8b331f442d 100644
--- a/.github/actions/build-mobile/action.yml
+++ b/.github/actions/build-mobile/action.yml
@@ -43,7 +43,7 @@ runs:
java-version: 21
- name: Set up Gradle
- uses: gradle/actions/setup-gradle@v6
+ uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
- name: Install dependencies
shell: bash
diff --git a/.github/actions/deploy-to-cloudflare-pages/action.yml b/.github/actions/deploy-to-cloudflare-pages/action.yml
index 8a6a88592a..5f3b30a688 100644
--- a/.github/actions/deploy-to-cloudflare-pages/action.yml
+++ b/.github/actions/deploy-to-cloudflare-pages/action.yml
@@ -34,7 +34,7 @@ runs:
- name: Deploy to Cloudflare Pages
id: deploy
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'release'
- uses: cloudflare/wrangler-action@v4
+ uses: cloudflare/wrangler-action@ebbaa1584979971c8614a24965b4405ff95890e0 # v4.0.0
with:
apiToken: ${{ inputs.cloudflare_api_token }}
accountId: ${{ inputs.cloudflare_account_id }}
@@ -46,7 +46,7 @@ runs:
- name: Deploy Preview to Cloudflare Pages
id: preview-deployment
if: github.event_name == 'pull_request'
- uses: cloudflare/wrangler-action@v4
+ uses: cloudflare/wrangler-action@ebbaa1584979971c8614a24965b4405ff95890e0 # v4.0.0
with:
apiToken: ${{ inputs.cloudflare_api_token }}
accountId: ${{ inputs.cloudflare_account_id }}
diff --git a/.github/actions/report-size/action.yml b/.github/actions/report-size/action.yml
index b29443b075..c724d6a321 100644
--- a/.github/actions/report-size/action.yml
+++ b/.github/actions/report-size/action.yml
@@ -54,7 +54,7 @@ runs:
# Generate the bundle size difference report [required]
- name: Generate report
id: bundleSize
- uses: nejcm/[email protected]
+ uses: nejcm/bundle-size-reporter-action@007b40dc7e8dd0905e729faa4d37d6a8f141aa6b # v1.4.1
with:
paths: ${{ inputs.paths }}
onlyDiff: ${{ inputs.onlyDiff }}
@@ -70,7 +70,7 @@ runs:
# Post github action comment
- name: Post comment
- uses: marocchino/sticky-pull-request-comment@v3
+ uses: marocchino/sticky-pull-request-comment@5770ad5eb8f42dd2c4f34da00c94c5381e49af88 # v3.0.5
if: ${{ steps.bundleSize.outputs.hasDifferences == 'true' }} # post only in case of changes
with:
number: ${{ github.event.pull_request.number }}