π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Address workflow hardening review
Manav Rathibd4b2477458a
diff --git a/.github/scripts/release-notes.mjs b/.github/scripts/release-notes.mjsindex 09aa750837..943a5b2301 100644--- a/.github/scripts/release-notes.mjs+++ b/.github/scripts/release-notes.mjs@@ -68,13 +68,12 @@ function playStoreBody(body) {return Array.from(body || "Bug fixes and improvements").slice(0, 500).join("");}-function output(name, value) {- const valueLines = new Set(String(value).split("\n"));+function output(name, text) {let delimiter = "RELEASE_NOTES_EOF";- while (valueLines.has(delimiter)) delimiter += "_";+ while (text.includes(delimiter)) delimiter += "_";console.log(`${name}<<${delimiter}`);- console.log(value);+ console.log(text);console.log(delimiter);}diff --git a/.github/workflows/app-release.yml b/.github/workflows/app-release.ymlindex b53b608db0..af785c13f1 100644--- a/.github/workflows/app-release.yml+++ b/.github/workflows/app-release.yml@@ -45,6 +45,14 @@ jobs:VERSION: ${{ inputs.version }}steps:+ - name: Validate version input+ shell: bash+ run: |+ if [[ ! "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then+ echo "::error::version must be x.y.z"+ exit 1+ fi+- name: Checkout mainif: inputs.action == 'start'uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0@@ -57,14 +65,6 @@ jobs:with:ref: release/${{ inputs.app }}-v${{ inputs.version }}- - name: Validate version input- shell: bash- run: |- if [[ ! "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then- echo "::error::version must be x.y.z"- exit 1- fi-- name: Mint App tokenid: app_tokenuses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0diff --git a/.github/workflows/ensu-build.yml b/.github/workflows/ensu-build.ymlindex 856baa88b6..c09015e6ab 100644--- a/.github/workflows/ensu-build.yml+++ b/.github/workflows/ensu-build.yml@@ -180,6 +180,7 @@ jobs:if: matrix.platform.os == 'windows-latest'shell: bashrun: |+ test "${{ secrets.AZURE_ENDPOINT != '' && secrets.AZURE_CODE_SIGNING_NAME != '' && secrets.AZURE_CERT_PROFILE_NAME != '' }}" = truecargo install --locked artifact-signing-cli --version 0.11.0artifact_signing_cli="${CARGO_HOME:-$HOME/.cargo}/bin/artifact-signing-cli.exe"