High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
feat: use explicit app token for all workflows (#22949)
bo0tzz08f81eb3c682
diff --git a/.github/workflows/build-mobile.yml b/.github/workflows/build-mobile.ymlindex f7e9ad5731..8750556c71 100644--- a/.github/workflows/build-mobile.yml+++ b/.github/workflows/build-mobile.yml@@ -34,10 +34,17 @@ jobs:outputs:should_run: ${{ steps.check.outputs.should_run }}steps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Check what should runid: check- uses: immich-app/devtools/actions/pre-job@5f91b52dfbb92b8d96ca411ab59c896cd59714ca # pre-job-action-v1.1.0+ uses: immich-app/devtools/actions/pre-job@08bac802a312fc89808e0dd589271ca0974087b5 # pre-job-action-v2.0.0with:+ github-token: ${{ steps.token.outputs.token }}filters: |mobile:- 'mobile/**'@@ -55,10 +62,17 @@ jobs:runs-on: michsteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:ref: ${{ inputs.ref || github.sha }}persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Create the Keystoreenv:diff --git a/.github/workflows/cache-cleanup.yml b/.github/workflows/cache-cleanup.ymlindex 0b4366ba04..7d49d94791 100644--- a/.github/workflows/cache-cleanup.yml+++ b/.github/workflows/cache-cleanup.yml@@ -18,14 +18,21 @@ jobs:contents: readactions: writesteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Check out codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Cleanupenv:- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ GH_TOKEN: ${{ steps.token.outputs.token }}REF: ${{ github.ref }}run: |gh extension install actions/gh-actions-cachediff --git a/.github/workflows/cli.yml b/.github/workflows/cli.ymlindex 51e023056d..a17225513a 100644--- a/.github/workflows/cli.yml+++ b/.github/workflows/cli.yml@@ -29,9 +29,16 @@ jobs:working-directory: ./clisteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Setup pnpmuses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0@@ -64,10 +71,17 @@ jobs:needs: publishsteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkoutuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Set up QEMUuses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0@@ -81,7 +95,7 @@ jobs:with:registry: ghcr.iousername: ${{ github.repository_owner }}- password: ${{ secrets.GITHUB_TOKEN }}+ password: ${{ steps.token.outputs.token }}- name: Get package versionid: package-version@@ -111,3 +125,4 @@ jobs:cache-to: type=gha,mode=maxtags: ${{ steps.metadata.outputs.tags }}labels: ${{ steps.metadata.outputs.labels }}+ github-token: ${{ steps.token.outputs.token }}diff --git a/.github/workflows/close-duplicates.yml b/.github/workflows/close-duplicates.ymlindex ba360b50dc..d135d9b1a0 100644--- a/.github/workflows/close-duplicates.yml+++ b/.github/workflows/close-duplicates.yml@@ -54,10 +54,16 @@ jobs:issues: writediscussions: writesteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Close issueif: ${{ github.event_name == 'issues' }}env:- GH_TOKEN: ${{ github.token }}+ GH_TOKEN: ${{ steps.token.outputs.token }}NODE_ID: ${{ github.event.issue.node_id }}run: |gh api graphql \@@ -83,7 +89,7 @@ jobs:- name: Close discussionif: ${{ github.event_name == 'discussion' && github.event.discussion.category.name == 'Feature Request' }}env:- GH_TOKEN: ${{ github.token }}+ GH_TOKEN: ${{ steps.token.outputs.token }}NODE_ID: ${{ github.event.discussion.node_id }}run: |gh api graphql \diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.ymlindex c0cb9e1da1..125ae28123 100644--- a/.github/workflows/codeql-analysis.yml+++ b/.github/workflows/codeql-analysis.yml@@ -43,10 +43,17 @@ jobs:# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-supportsteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout repositoryuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}# Initializes the CodeQL tools for scanning.- name: Initialize CodeQLdiff --git a/.github/workflows/docker.yml b/.github/workflows/docker.ymlindex 7175dc0a89..1e21d812ae 100644--- a/.github/workflows/docker.yml+++ b/.github/workflows/docker.yml@@ -22,10 +22,17 @@ jobs:outputs:should_run: ${{ steps.check.outputs.should_run }}steps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Check what should runid: check- uses: immich-app/devtools/actions/pre-job@5f91b52dfbb92b8d96ca411ab59c896cd59714ca # pre-job-action-v1.1.0+ uses: immich-app/devtools/actions/pre-job@08bac802a312fc89808e0dd589271ca0974087b5 # pre-job-action-v2.0.0with:+ github-token: ${{ steps.token.outputs.token }}filters: |server:- 'server/**'@@ -52,12 +59,18 @@ jobs:matrix:suffix: ['', '-cuda', '-rocm', '-openvino', '-armnn', '-rknn']steps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Login to GitHub Container Registryuses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0with:registry: ghcr.iousername: ${{ github.repository_owner }}- password: ${{ secrets.GITHUB_TOKEN }}+ password: ${{ steps.token.outputs.token }}- name: Re-tag imageenv:REGISTRY_NAME: 'ghcr.io'@@ -81,12 +94,18 @@ jobs:matrix:suffix: ['']steps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Login to GitHub Container Registryuses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0with:registry: ghcr.iousername: ${{ github.repository_owner }}- password: ${{ secrets.GITHUB_TOKEN }}+ password: ${{ steps.token.outputs.token }}- name: Re-tag imageenv:REGISTRY_NAME: 'ghcr.io'diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.ymlindex 537282b789..24542c8585 100644--- a/.github/workflows/docs-build.yml+++ b/.github/workflows/docs-build.yml@@ -20,10 +20,17 @@ jobs:outputs:should_run: ${{ steps.check.outputs.should_run }}steps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Check what should runid: check- uses: immich-app/devtools/actions/pre-job@5f91b52dfbb92b8d96ca411ab59c896cd59714ca # pre-job-action-v1.1.0+ uses: immich-app/devtools/actions/pre-job@08bac802a312fc89808e0dd589271ca0974087b5 # pre-job-action-v2.0.0with:+ github-token: ${{ steps.token.outputs.token }}filters: |docs:- 'docs/**'@@ -46,10 +53,17 @@ jobs:working-directory: ./docssteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Setup pnpmuses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.ymlindex 5344af0ea6..b5ef40fb77 100644--- a/.github/workflows/docs-deploy.yml+++ b/.github/workflows/docs-deploy.yml@@ -16,12 +16,19 @@ jobs:parameters: ${{ steps.parameters.outputs.result }}artifact: ${{ steps.get-artifact.outputs.result }}steps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- if: ${{ github.event.workflow_run.conclusion != 'success' }}run: echo 'The triggering workflow did not succeed' && exit 1- name: Get artifactid: get-artifactuses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0with:+ github-token: ${{ steps.token.outputs.token }}script: |let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({owner: context.repo.owner,@@ -42,6 +49,7 @@ jobs:env:HEAD_SHA: ${{ github.event.workflow_run.head_sha }}with:+ github-token: ${{ steps.token.outputs.token }}script: |const eventType = context.payload.workflow_run.event;const isFork = context.payload.workflow_run.repository.fork;@@ -107,10 +115,17 @@ jobs:pull-requests: writeif: ${{ fromJson(needs.checks.outputs.artifact).found && fromJson(needs.checks.outputs.parameters).shouldDeploy }}steps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Setup Miseuses: immich-app/devtools/actions/use-mise@697a75e2c3186d3c037c2c159855cf2d566542ba # use-mise-action-0.0.1@@ -121,6 +136,7 @@ jobs:env:PARAM_JSON: ${{ needs.checks.outputs.parameters }}with:+ github-token: ${{ steps.token.outputs.token }}script: |const parameters = JSON.parse(process.env.PARAM_JSON);core.setOutput("event", parameters.event);@@ -132,6 +148,7 @@ jobs:env:ARTIFACT_JSON: ${{ needs.checks.outputs.artifact }}with:+ github-token: ${{ steps.token.outputs.token }}script: |let artifact = JSON.parse(process.env.ARTIFACT_JSON);let download = await github.rest.actions.downloadArtifact({@@ -201,6 +218,7 @@ jobs:uses: actions-cool/maintain-one-comment@4b2dbf086015f892dcb5e8c1106f5fccd6c1476b # v3.2.0if: ${{ steps.parameters.outputs.event == 'pr' }}with:+ token: ${{ steps.token.outputs.token }}number: ${{ fromJson(needs.checks.outputs.parameters).pr_number }}body: |📖 Documentation deployed to [${{ fromJson(steps.clean.outputs.output).immich_app_branch_subdomain.value }}](https://${{ fromJson(steps.clean.outputs.output).immich_app_branch_subdomain.value }})diff --git a/.github/workflows/docs-destroy.yml b/.github/workflows/docs-destroy.ymlindex 1b29fdd726..e7f4f4008e 100644--- a/.github/workflows/docs-destroy.yml+++ b/.github/workflows/docs-destroy.yml@@ -13,10 +13,17 @@ jobs:contents: readpull-requests: writesteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Setup Miseuses: immich-app/devtools/actions/use-mise@697a75e2c3186d3c037c2c159855cf2d566542ba # use-mise-action-0.0.1@@ -34,6 +41,7 @@ jobs:- name: Commentuses: actions-cool/maintain-one-comment@4b2dbf086015f892dcb5e8c1106f5fccd6c1476b # v3.2.0with:+ token: ${{ steps.token.outputs.token }}number: ${{ github.event.number }}delete: truebody-include: '<!-- Docs PR URL -->'diff --git a/.github/workflows/fix-format.yml b/.github/workflows/fix-format.ymlindex dd61764bbc..68267011ce 100644--- a/.github/workflows/fix-format.yml+++ b/.github/workflows/fix-format.yml@@ -51,6 +51,7 @@ jobs:uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0if: always()with:+ github-token: ${{ steps.generate-token.outputs.token }}script: |github.rest.issues.removeLabel({issue_number: context.payload.pull_request.number,diff --git a/.github/workflows/merge-translations.yml b/.github/workflows/merge-translations.ymlindex d494460320..32e1b1a138 100644--- a/.github/workflows/merge-translations.yml+++ b/.github/workflows/merge-translations.yml@@ -28,11 +28,19 @@ jobs:permissions:pull-requests: writesteps:+ - name: Generate a token+ id: generate_token+ if: ${{ inputs.skip != true }}+ uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Find translation PRid: find_prif: ${{ inputs.skip != true }}env:- GH_TOKEN: ${{ github.token }}+ GH_TOKEN: ${{ steps.generate_token.outputs.token }}run: |set -euo pipefail@@ -55,14 +63,6 @@ jobs:exit 1fi- - name: Generate a token- id: generate_token- if: ${{ inputs.skip != true }}- uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4- with:- app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}- private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}-- name: Lock weblateif: ${{ inputs.skip != true }}env:diff --git a/.github/workflows/pr-label-validation.yml b/.github/workflows/pr-label-validation.ymlindex 2c75be8653..0544de3dad 100644--- a/.github/workflows/pr-label-validation.yml+++ b/.github/workflows/pr-label-validation.yml@@ -13,9 +13,16 @@ jobs:issues: writepull-requests: writesteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Require PR to have a changelog labeluses: mheap/github-action-required-labels@8afbe8ae6ab7647d0c9f0cfa7c2f939650d22509 # v5.5.1with:+ token: ${{ steps.token.outputs.token }}mode: exactlycount: 1use_regex: truediff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.ymlindex af92a3e215..263426e548 100644--- a/.github/workflows/pr-labeler.yml+++ b/.github/workflows/pr-labeler.yml@@ -11,4 +11,12 @@ jobs:pull-requests: writeruns-on: ubuntu-lateststeps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b # v6.0.1+ with:+ repo-token: ${{ steps.token.outputs.token }}diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.ymlindex 5a369ad13b..97656eaf0c 100644--- a/.github/workflows/prepare-release.yml+++ b/.github/workflows/prepare-release.yml@@ -126,6 +126,7 @@ jobs:uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0with:name: release-apk-signed+ github-token: ${{ steps.generate-token.outputs.token }}- name: Create draft releaseuses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1diff --git a/.github/workflows/preview-label.yaml b/.github/workflows/preview-label.yamlindex 594214f820..fc01dc53f9 100644--- a/.github/workflows/preview-label.yaml+++ b/.github/workflows/preview-label.yaml@@ -13,8 +13,15 @@ jobs:permissions:pull-requests: writesteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2.8.2with:+ github-token: ${{ steps.token.outputs.token }}message-id: 'preview-status'message: 'Deploying preview environment to https://pr-${{ github.event.pull_request.number }}.preview.internal.immich.cloud/'@@ -24,8 +31,15 @@ jobs:permissions:pull-requests: writesteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0with:+ github-token: ${{ steps.token.outputs.token }}script: |github.rest.issues.removeLabel({issue_number: context.payload.pull_request.number,@@ -37,11 +51,13 @@ jobs:- uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2.8.2if: ${{ github.event.pull_request.head.repo.fork }}with:+ github-token: ${{ steps.token.outputs.token }}message-id: 'preview-status'message: 'PRs from forks cannot have preview environments.'- uses: mshick/add-pr-comment@b8f338c590a895d50bcbfa6c5859251edc8952fc # v2.8.2if: ${{ !github.event.pull_request.head.repo.fork }}with:+ github-token: ${{ steps.token.outputs.token }}message-id: 'preview-status'message: 'Preview environment has been removed.'diff --git a/.github/workflows/sdk.yml b/.github/workflows/sdk.ymlindex 6d768efaaf..96e5495cdd 100644--- a/.github/workflows/sdk.yml+++ b/.github/workflows/sdk.yml@@ -16,9 +16,16 @@ jobs:run:working-directory: ./open-api/typescript-sdksteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Setup pnpmuses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0diff --git a/.github/workflows/static_analysis.yml b/.github/workflows/static_analysis.ymlindex 3e7223be74..99ee773af4 100644--- a/.github/workflows/static_analysis.yml+++ b/.github/workflows/static_analysis.yml@@ -19,10 +19,17 @@ jobs:outputs:should_run: ${{ steps.check.outputs.should_run }}steps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Check what should runid: check- uses: immich-app/devtools/actions/pre-job@5f91b52dfbb92b8d96ca411ab59c896cd59714ca # pre-job-action-v1.1.0+ uses: immich-app/devtools/actions/pre-job@08bac802a312fc89808e0dd589271ca0974087b5 # pre-job-action-v2.0.0with:+ github-token: ${{ steps.token.outputs.token }}filters: |mobile:- 'mobile/**'@@ -41,10 +48,17 @@ jobs:run:working-directory: ./mobilesteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Setup Flutter SDKuses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # v2.21.0@@ -58,7 +72,7 @@ jobs:- name: Install DCMuses: CQLabs/setup-dcm@8697ae0790c0852e964a6ef1d768d62a6675481a # v2.0.1with:- github-token: ${{ secrets.GITHUB_TOKEN }}+ github-token: ${{ steps.token.outputs.token }}version: autoworking-directory: ./mobilediff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex d95ede71e4..88db0257ed 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -16,10 +16,17 @@ jobs:outputs:should_run: ${{ steps.check.outputs.should_run }}steps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Check what should runid: check- uses: immich-app/devtools/actions/pre-job@5f91b52dfbb92b8d96ca411ab59c896cd59714ca # pre-job-action-v1.1.0+ uses: immich-app/devtools/actions/pre-job@08bac802a312fc89808e0dd589271ca0974087b5 # pre-job-action-v2.0.0with:+ github-token: ${{ steps.token.outputs.token }}filters: |i18n:- 'i18n/**'@@ -55,10 +62,18 @@ jobs:run:working-directory: ./serversteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}+- name: Setup pnpmuses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0- name: Setup Node@@ -92,10 +107,17 @@ jobs:run:working-directory: ./clisteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Setup pnpmuses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0- name: Setup Node@@ -132,10 +154,17 @@ jobs:run:working-directory: ./clisteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Setup pnpmuses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0- name: Setup Node@@ -167,10 +196,17 @@ jobs:run:working-directory: ./websteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Setup pnpmuses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0- name: Setup Node@@ -204,10 +240,17 @@ jobs:run:working-directory: ./websteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Setup pnpmuses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0- name: Setup Node@@ -235,10 +278,17 @@ jobs:permissions:contents: readsteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Setup pnpmuses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0- name: Setup Node@@ -276,10 +326,17 @@ jobs:run:working-directory: ./e2esteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Setup pnpmuses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0- name: Setup Node@@ -315,10 +372,17 @@ jobs:run:working-directory: ./serversteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Setup pnpmuses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0- name: Setup Node@@ -346,11 +410,18 @@ jobs:matrix:runner: [ubuntu-latest, ubuntu-24.04-arm]steps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: falsesubmodules: 'recursive'+ token: ${{ steps.token.outputs.token }}- name: Setup pnpmuses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0- name: Setup Node@@ -394,11 +465,18 @@ jobs:matrix:runner: [ubuntu-latest, ubuntu-24.04-arm]steps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: falsesubmodules: 'recursive'+ token: ${{ steps.token.outputs.token }}- name: Setup pnpmuses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0- name: Setup Node@@ -441,9 +519,16 @@ jobs:permissions:contents: readsteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Setup Flutter SDKuses: subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e # v2.21.0with:@@ -466,9 +551,16 @@ jobs:run:working-directory: ./machine-learningsteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Install uvuses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0@@ -502,10 +594,17 @@ jobs:run:working-directory: ./.githubsteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Setup pnpmuses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0- name: Setup Node@@ -525,9 +624,16 @@ jobs:permissions:contents: readsteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Run ShellCheckuses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # 2.0.0with:@@ -539,10 +645,17 @@ jobs:permissions:contents: readsteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Setup pnpmuses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0- name: Setup Node@@ -594,10 +707,17 @@ jobs:run:working-directory: ./serversteps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Checkout codeuses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0with:persist-credentials: false+ token: ${{ steps.token.outputs.token }}- name: Setup pnpmuses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0- name: Setup Nodediff --git a/.github/workflows/weblate-lock.yml b/.github/workflows/weblate-lock.ymlindex d7deb244f9..1f0a7608d1 100644--- a/.github/workflows/weblate-lock.yml+++ b/.github/workflows/weblate-lock.yml@@ -23,10 +23,17 @@ jobs:outputs:should_run: ${{ steps.check.outputs.should_run }}steps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Check what should runid: check- uses: immich-app/devtools/actions/pre-job@5f91b52dfbb92b8d96ca411ab59c896cd59714ca # pre-job-action-v1.1.0+ uses: immich-app/devtools/actions/pre-job@08bac802a312fc89808e0dd589271ca0974087b5 # pre-job-action-v2.0.0with:+ github-token: ${{ steps.token.outputs.token }}filters: |i18n:- 'i18n/!(en)**\.json'@@ -40,10 +47,16 @@ jobs:permissions: {}if: ${{ fromJSON(needs.pre-job.outputs.should_run).i18n == true }}steps:+ - id: token+ uses: immich-app/devtools/actions/create-workflow-token@da177fa133657503ddb7503f8ba53dccefec5da1 # create-workflow-token-action-v1.0.0+ with:+ app-id: ${{ secrets.PUSH_O_MATIC_APP_ID }}+ private-key: ${{ secrets.PUSH_O_MATIC_APP_KEY }}+- name: Bot review statusenv:PR_NUMBER: ${{ github.event.pull_request.number || github.event.pull_request_review.pull_request.number }}- GH_TOKEN: ${{ github.token }}+ GH_TOKEN: ${{ steps.token.outputs.token }}run: |# Then check for APPROVED by the bot, if absent failgh pr view "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --json reviews | jq -e '.reviews | map(select(.author.login == env.BOT_NAME and .state == "APPROVED")) | length > 0' \