Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.
Rust chatgptclaudeclidesktopdesktop-appelectron-alternativegeminilinuxmacosnativefierno-electronrusttauriweb-to-desktopwebsite-to-appwebviewwindowsyoutube
ci: pin third-party actions by commit and stop persisting checkout credentials (#1416)
Thibaud-Vdb3a136c22a380
diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.ymlindex 0848d23b..93fa215d 100644--- a/.github/actions/setup-env/action.yml+++ b/.github/actions/setup-env/action.yml@@ -58,7 +58,7 @@ runs:# Node.js Environment Setup- name: Install pnpmif: env.SETUP_NODE == 'true'- uses: pnpm/action-setup@v4+ uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0with:version: "10.26.2"run_install: false@@ -78,21 +78,21 @@ runs:# Rust Environment Setup- name: Setup Rust for Linuxif: env.SETUP_RUST == 'true' && runner.os == 'Linux'- uses: dtolnay/rust-toolchain@stable+ uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # masterwith:toolchain: stabletarget: x86_64-unknown-linux-gnu- name: Setup Rust for Windowsif: env.SETUP_RUST == 'true' && runner.os == 'Windows'- uses: dtolnay/rust-toolchain@stable+ uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # masterwith:toolchain: stable-x86_64-msvctarget: x86_64-pc-windows-msvc- name: Setup Rust for macOSif: env.SETUP_RUST == 'true' && runner.os == 'macOS'- uses: dtolnay/rust-toolchain@stable+ uses: dtolnay/rust-toolchain@e2a55d2ffb04f378e9626c28d38b36d230d1e12f # masterwith:toolchain: stable@@ -106,7 +106,7 @@ runs:# System Dependencies- name: Install Ubuntu dependenciesif: env.SETUP_SYSTEM == 'true' && runner.os == 'Linux'- uses: awalsh128/[email protected]+ uses: awalsh128/cache-apt-pkgs-action@5902b33ae29014e6ca012c5d8025d4346556bd40 # v1.4.3with:packages: >libdbus-1-dev libsoup-3.0-dev libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev@@ -157,7 +157,7 @@ runs:# GitHub's cache rate limit (HTTP 429) when a release starts 48 jobs at once.- name: Setup Rust cacheif: inputs.mode == 'build'- uses: swatinem/rust-cache@v2+ uses: swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2with:workspaces: "src-tauri -> target"shared-key: "pake-build-${{ runner.os }}"diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.ymlindex 9a80dbf6..93a84e43 100644--- a/.github/workflows/npm-publish.yml+++ b/.github/workflows/npm-publish.yml@@ -35,6 +35,8 @@ jobs:steps:- name: Checkout repositoryuses: actions/checkout@v6+ with:+ persist-credentials: false- name: Check manual publish source and quality gateif: github.event_name == 'workflow_dispatch'@@ -73,7 +75,7 @@ jobs:fi- name: Install pnpm- uses: pnpm/action-setup@v4+ uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0with:version: "10.26.2"run_install: falsediff --git a/.github/workflows/pake-cli.yaml b/.github/workflows/pake-cli.yamlindex 4fa6f594..3d794aa9 100644--- a/.github/workflows/pake-cli.yaml+++ b/.github/workflows/pake-cli.yaml@@ -82,6 +82,8 @@ jobs:steps:- name: Checkout repositoryuses: actions/checkout@v6+ with:+ persist-credentials: false- name: Setup Node.js Environmentuses: ./.github/actions/setup-env@@ -93,7 +95,7 @@ jobs:- name: Setup mold linkerif: runner.os == 'Linux'- uses: rui314/setup-mold@v1+ uses: rui314/setup-mold@339e96b4ff1f3bd865856ba4cbbe8818a7acb038 # v1- name: Build App (Linux/macOS)if: runner.os != 'Windows'diff --git a/.github/workflows/quality-and-test.yml b/.github/workflows/quality-and-test.ymlindex 44e6ed44..137b8e52 100644--- a/.github/workflows/quality-and-test.yml+++ b/.github/workflows/quality-and-test.yml@@ -66,6 +66,8 @@ jobs:working-directory: src-tauristeps:- uses: actions/checkout@v6+ with:+ persist-credentials: false- name: Setup Rust Environmentuses: ./.github/actions/setup-env@@ -77,10 +79,10 @@ jobs:shell: bashrun: rustup component add rustfmt clippy- - uses: rui314/setup-mold@v1+ - uses: rui314/setup-mold@339e96b4ff1f3bd865856ba4cbbe8818a7acb038 # v1- name: Install cargo-hack- uses: taiki-e/install-action@v2+ uses: taiki-e/install-action@1168f6810a3cb30a3514bf5756a3b7f0422c6df8 # v2.87.28with:tool: cargo-hack@@ -106,6 +108,8 @@ jobs:steps:- name: Checkout repositoryuses: actions/checkout@v6+ with:+ persist-credentials: false- name: Setup Build Environmentuses: ./.github/actions/setup-env@@ -149,6 +153,8 @@ jobs:steps:- name: Checkout repositoryuses: actions/checkout@v6+ with:+ persist-credentials: false- name: Setup Build Environmentuses: ./.github/actions/setup-env@@ -169,9 +175,11 @@ jobs:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v6- - uses: docker/setup-buildx-action@v3+ with:+ persist-credentials: false+ - uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0- name: Build validation image- uses: docker/build-push-action@v6+ uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2with:context: .load: truediff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 505d0b53..c51a5b28 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -42,6 +42,8 @@ jobs:steps:- name: Checkout repositoryuses: actions/checkout@v6+ with:+ persist-credentials: false- name: Get Apps Configid: read-apps-config@@ -57,7 +59,7 @@ jobs:contents: writesteps:- name: Create release placeholder- uses: ncipollo/release-action@v1+ uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0with:token: ${{ secrets.GITHUB_TOKEN }}skipIfReleaseExists: true@@ -111,6 +113,8 @@ jobs:steps:- name: Checkout repositoryuses: actions/checkout@v6+ with:+ persist-credentials: false- name: Setup Node.js Environmentuses: ./.github/actions/setup-env@@ -142,7 +146,13 @@ jobs:matrix:config: ${{ fromJSON(needs.release-apps.outputs.apps_config) }}uses: ./.github/workflows/single-app.yaml- secrets: inherit+ secrets:+ PAKE_SIGNING_IDENTITY: ${{ secrets.PAKE_SIGNING_IDENTITY }}+ PAKE_CERTIFICATE_P12: ${{ secrets.PAKE_CERTIFICATE_P12 }}+ PAKE_CERTIFICATE_PASSWORD: ${{ secrets.PAKE_CERTIFICATE_PASSWORD }}+ PAKE_NOTARIZE_APPLE_ID: ${{ secrets.PAKE_NOTARIZE_APPLE_ID }}+ PAKE_NOTARIZE_TEAM_ID: ${{ secrets.PAKE_NOTARIZE_TEAM_ID }}+ PAKE_NOTARIZE_PASSWORD: ${{ secrets.PAKE_NOTARIZE_PASSWORD }}with:name: ${{ matrix.config.name }}title: ${{ matrix.config.title }}@@ -166,12 +176,14 @@ jobs:steps:- name: Checkout repositoryuses: actions/checkout@v6+ with:+ persist-credentials: false- name: Set up Docker Buildx- uses: docker/setup-buildx-action@v3+ uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0- name: Log in to Container registry- uses: docker/login-action@v3+ uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0with:registry: ${{ env.REGISTRY }}username: ${{ github.actor }}@@ -179,7 +191,7 @@ jobs:- name: Extract metadataid: meta- uses: docker/metadata-action@v5+ uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0with:images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}tags: |@@ -188,7 +200,7 @@ jobs:type=sha- name: Build and push Docker image- uses: docker/build-push-action@v6+ uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2with:context: .push: truediff --git a/.github/workflows/single-app.yaml b/.github/workflows/single-app.yamlindex d49634dc..3e56c8b5 100644--- a/.github/workflows/single-app.yaml+++ b/.github/workflows/single-app.yaml@@ -128,6 +128,8 @@ jobs:steps:- name: Checkout repositoryuses: actions/checkout@v6+ with:+ persist-credentials: false- name: Setup Node.js Environmentuses: ./.github/actions/setup-env@@ -147,7 +149,7 @@ jobs:- name: Setup mold linkerif: matrix.build == 'linux'- uses: rui314/setup-mold@v1+ uses: rui314/setup-mold@339e96b4ff1f3bd865856ba4cbbe8818a7acb038 # v1- name: Prepare macOS signingif: matrix.os == 'macos-latest'@@ -428,7 +430,7 @@ jobs:retention-days: 3- name: Upload to release (Linux)- uses: ncipollo/release-action@v1 # cspell:disable-line+ uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0if: matrix.build == 'linux' && startsWith(github.ref, 'refs/tags/')with:allowUpdates: true@@ -438,7 +440,7 @@ jobs:token: ${{ secrets.GITHUB_TOKEN }}- name: Upload to release (macOS)- uses: ncipollo/release-action@v1 # cspell:disable-line+ uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0if: matrix.os == 'macos-latest' && startsWith(github.ref, 'refs/tags/')with:allowUpdates: true@@ -448,7 +450,7 @@ jobs:token: ${{ secrets.GITHUB_TOKEN }}- name: Upload to release (Windows)- uses: ncipollo/release-action@v1 # cspell:disable-line+ uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0if: matrix.os == 'windows-latest' && startsWith(github.ref, 'refs/tags/')with:allowUpdates: truediff --git a/.github/workflows/update-contributors.yml b/.github/workflows/update-contributors.ymlindex f9ec2b48..a18e6e96 100644--- a/.github/workflows/update-contributors.yml+++ b/.github/workflows/update-contributors.yml@@ -51,7 +51,7 @@ jobs:</g>- name: Commit & Push- uses: stefanzweifel/git-auto-commit-action@v7+ uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0with:commit_message: "chore: update contributors [skip ci]"file_pattern: CONTRIBUTORS.svg