Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
ci: pin the remaining third-party actions by commit and declare a read-only default token (#9842)
Thibaud-Vdb2736515fa6a5
diff --git a/.github/actions/install-frontend-deps/action.yml b/.github/actions/install-frontend-deps/action.ymlindex 57421c59a4..49ccb9b3d0 100644--- a/.github/actions/install-frontend-deps/action.yml+++ b/.github/actions/install-frontend-deps/action.yml@@ -14,7 +14,7 @@ runs:node-version-file: '.nvmrc'- name: setup pnpm- uses: pnpm/action-setup@v6+ uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10with:version: 10run_install: falsediff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.ymlindex 8e60dbdb6b..c3d071a656 100644--- a/.github/workflows/build-container.yml+++ b/.github/workflows/build-container.yml@@ -66,11 +66,11 @@ jobs:df -h- name: Checkout- uses: useblacksmith/checkout@v1+ uses: useblacksmith/checkout@25227e61ff9dafe400e22fa487b673eac4e4409a # v1.8.1- name: Docker metaid: meta- uses: docker/metadata-action@v6+ uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302 # v6.2.0with:github-token: ${{ secrets.GITHUB_TOKEN }}images: |@@ -87,11 +87,11 @@ jobs:suffix=-${{ matrix.gpu-driver }},onlatest=false- name: Setup Blacksmith Builder- uses: useblacksmith/setup-docker-builder@v1+ uses: useblacksmith/setup-docker-builder@e4c1c000c95f9cc255f72940e9c56bcbd1239436 # v1.13.0- name: Login to GitHub Container Registryif: github.event_name != 'pull_request'- uses: docker/login-action@v4+ uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0with:registry: ghcr.iousername: ${{ github.repository_owner }}@@ -106,7 +106,7 @@ jobs:# 2026-09-22).timeout-minutes: 90id: docker_build- uses: useblacksmith/build-push-action@v2+ uses: useblacksmith/build-push-action@9b0579bbec7a6cad2f171596c57e7ac1e7658850 # v2.3.0with:context: .file: docker/Dockerfilediff --git a/.github/workflows/build-wheel.yml b/.github/workflows/build-wheel.ymlindex eb0a4e6e28..de88b541ac 100644--- a/.github/workflows/build-wheel.yml+++ b/.github/workflows/build-wheel.yml@@ -5,6 +5,9 @@ name: build wheelon:workflow_dispatch:workflow_call:+permissions:+ contents: read+jobs:build-installer:@@ -12,7 +15,7 @@ jobs:timeout-minutes: 5 # expected run time: <2 minsteps:- name: checkout- uses: useblacksmith/checkout@v1+ uses: useblacksmith/checkout@25227e61ff9dafe400e22fa487b673eac4e4409a # v1.8.1- name: setup pythonuses: actions/setup-python@v6diff --git a/.github/workflows/clean-caches.yml b/.github/workflows/clean-caches.ymlindex 75533e346c..1a45655861 100644--- a/.github/workflows/clean-caches.yml+++ b/.github/workflows/clean-caches.yml@@ -4,13 +4,19 @@ on:types:- closedworkflow_dispatch:+permissions:+ contents: read+jobs:cleanup:+ permissions:+ actions: write+ contents: readruns-on: blacksmith-4vcpu-ubuntu-2404steps:- name: Check out code- uses: useblacksmith/checkout@v1+ uses: useblacksmith/checkout@25227e61ff9dafe400e22fa487b673eac4e4409a # v1.8.1- name: Cleanuprun: |diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.ymlindex fd0122775f..2a80831aee 100644--- a/.github/workflows/deploy-docs.yml+++ b/.github/workflows/deploy-docs.yml@@ -27,7 +27,7 @@ jobs:docs: ${{ steps.manual.outputs.docs || steps.filter.outputs.docs }}steps:- name: checkout- uses: useblacksmith/checkout@v1+ uses: useblacksmith/checkout@25227e61ff9dafe400e22fa487b673eac4e4409a # v1.8.1with:fetch-depth: 0@@ -41,7 +41,7 @@ jobs:- name: detect docs-related changesif: github.event_name == 'pull_request'id: filter- uses: dorny/paths-filter@v3+ uses: dorny/paths-filter@0e4a8c6effa4802afeda77dc8d303f8176d7dfad # v3.0.4with:filters: |docs:@@ -65,11 +65,11 @@ jobs:timeout-minutes: 20steps:- name: checkout- uses: useblacksmith/checkout@v1+ uses: useblacksmith/checkout@25227e61ff9dafe400e22fa487b673eac4e4409a # v1.8.1# Python (needed for generate-docs-data)- name: setup uv- uses: astral-sh/[email protected]+ uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0with:version: '0.11.28' # When updating this, make sure the version in launcher's package.json gets updated too.enable-cache: true@@ -92,7 +92,7 @@ jobs:node-version: '22'- name: setup pnpm- uses: pnpm/action-setup@v6+ uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10with:version: 10run_install: falsediff --git a/.github/workflows/frontend-checks.yml b/.github/workflows/frontend-checks.ymlindex 7633593ea7..ee9ba1d47d 100644--- a/.github/workflows/frontend-checks.yml+++ b/.github/workflows/frontend-checks.yml@@ -35,6 +35,9 @@ on:# the run id and never cancel each other. The group names the workflow literally# because `github.workflow` is the caller's name inside a reusable workflow, and release.yml calls# several of these at once.+permissions:+ contents: read+concurrency:group: frontend-checks-${{ github.event.pull_request.number || github.run_id }}cancel-in-progress: true@@ -47,7 +50,7 @@ jobs:run:working-directory: invokeai/frontend/webv2steps:- - uses: useblacksmith/checkout@v1+ - uses: useblacksmith/checkout@25227e61ff9dafe400e22fa487b673eac4e4409a # v1.8.1- name: check for changed webv2 filesif: ${{ inputs.always_run != true }}diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.ymlindex d1a08bede7..dec0120e82 100644--- a/.github/workflows/frontend-tests.yml+++ b/.github/workflows/frontend-tests.yml@@ -35,6 +35,9 @@ on:# the run id and never cancel each other. The group names the workflow literally# because `github.workflow` is the caller's name inside a reusable workflow, and release.yml calls# several of these at once.+permissions:+ contents: read+concurrency:group: frontend-tests-${{ github.event.pull_request.number || github.run_id }}cancel-in-progress: true@@ -47,7 +50,7 @@ jobs:run:working-directory: invokeai/frontend/webv2steps:- - uses: useblacksmith/checkout@v1+ - uses: useblacksmith/checkout@25227e61ff9dafe400e22fa487b673eac4e4409a # v1.8.1- name: check for changed webv2 filesif: ${{ inputs.always_run != true }}diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.ymlindex a1c0e4f2a2..93c324d82d 100644--- a/.github/workflows/label-pr.yml+++ b/.github/workflows/label-pr.yml@@ -10,7 +10,7 @@ jobs:runs-on: blacksmith-4vcpu-ubuntu-2404steps:- name: checkout- uses: useblacksmith/checkout@v1+ uses: useblacksmith/checkout@25227e61ff9dafe400e22fa487b673eac4e4409a # v1.8.1- name: label PRsuses: actions/labeler@v6diff --git a/.github/workflows/lfs-checks.yml b/.github/workflows/lfs-checks.ymlindex c1b875d574..2540b204cf 100644--- a/.github/workflows/lfs-checks.yml+++ b/.github/workflows/lfs-checks.yml@@ -24,7 +24,7 @@ jobs:pull-requests: writesteps:- name: checkout- uses: useblacksmith/checkout@v1+ uses: useblacksmith/checkout@25227e61ff9dafe400e22fa487b673eac4e4409a # v1.8.1- name: check lfs files- uses: ppremk/[email protected]+ uses: ppremk/lfs-warning@4b98a8a5e6c429c23c34eee02d71553bca216425 # v3.3diff --git a/.github/workflows/openapi-checks.yml b/.github/workflows/openapi-checks.ymlindex 5061d703f8..0911c200cf 100644--- a/.github/workflows/openapi-checks.yml+++ b/.github/workflows/openapi-checks.yml@@ -36,6 +36,9 @@ on:# the run id and never cancel each other. The group names the workflow literally# because `github.workflow` is the caller's name inside a reusable workflow, and release.yml calls# several of these at once.+permissions:+ contents: read+concurrency:group: openapi-checks-${{ github.event.pull_request.number || github.run_id }}cancel-in-progress: true@@ -49,7 +52,7 @@ jobs:timeout-minutes: 15 # expected run time: <5 minsteps:- name: checkout- uses: useblacksmith/checkout@v1+ uses: useblacksmith/checkout@25227e61ff9dafe400e22fa487b673eac4e4409a # v1.8.1- name: Free up more disk space on the runner# https://github.com/actions/runner-images/issues/2840#issuecomment-1284059930@@ -89,7 +92,7 @@ jobs:- name: setup uvif: ${{ steps.changed-files.outputs.src_any_changed == 'true' || inputs.always_run == true }}- uses: astral-sh/setup-uv@v5+ uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2with:version: '0.11.28' # When updating this, make sure the version in launcher's package.json gets updated too.enable-cache: truediff --git a/.github/workflows/python-checks.yml b/.github/workflows/python-checks.ymlindex 435056b14a..17bc9e6fcb 100644--- a/.github/workflows/python-checks.yml+++ b/.github/workflows/python-checks.yml@@ -37,6 +37,9 @@ on:# the run id and never cancel each other. The group names the workflow literally# because `github.workflow` is the caller's name inside a reusable workflow, and release.yml calls# several of these at once.+permissions:+ contents: read+concurrency:group: python-checks-${{ github.event.pull_request.number || github.run_id }}cancel-in-progress: true@@ -50,7 +53,7 @@ jobs:timeout-minutes: 5 # expected run time: <1 minsteps:- name: checkout- uses: useblacksmith/checkout@v1+ uses: useblacksmith/checkout@25227e61ff9dafe400e22fa487b673eac4e4409a # v1.8.1- name: check for changed python filesif: ${{ inputs.always_run != true }}@@ -72,7 +75,7 @@ jobs:- name: setup uvif: ${{ steps.changed-files.outputs.python_any_changed == 'true' || inputs.always_run == true }}- uses: astral-sh/[email protected]+ uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0with:version: '0.11.28' # When updating this, make sure the version in launcher's package.json gets updated too.enable-cache: truediff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.ymlindex 31ffe5e734..a801dbd5a8 100644--- a/.github/workflows/python-tests.yml+++ b/.github/workflows/python-tests.yml@@ -35,6 +35,9 @@ on:# the run id and never cancel each other. The group names the workflow literally# because `github.workflow` is the caller's name inside a reusable workflow, and release.yml calls# several of these at once.+permissions:+ contents: read+concurrency:group: python-tests-${{ github.event.pull_request.number || github.run_id }}cancel-in-progress: true@@ -140,7 +143,7 @@ jobs:- name: setup uvif: ${{ steps.changed-files.outputs.python_any_changed == 'true' || inputs.always_run == true }}- uses: astral-sh/[email protected]+ uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0with:version: '0.11.28' # When updating this, make sure the version in launcher's package.json gets updated too.enable-cache: true@@ -235,7 +238,7 @@ jobs:uses: nschloe/action-cached-lfs-checkout@385a8ecc719e50b8c71af6ab01a624b486b7c3bc- name: setup uv- uses: astral-sh/[email protected]+ uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0with:version: '0.11.28' # When updating this, make sure the version in launcher's package.json gets updated too.enable-cache: truediff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 28bd049564..b4ba5c80c5 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -14,16 +14,19 @@ on:tags:- 'v*'workflow_dispatch:+permissions:+ contents: read+jobs:check-version:runs-on: blacksmith-4vcpu-ubuntu-2404steps:- name: checkout- uses: useblacksmith/checkout@v1+ uses: useblacksmith/checkout@25227e61ff9dafe400e22fa487b673eac4e4409a # v1.8.1- name: check python version- uses: samuelcolvin/check-python-version@v4+ uses: samuelcolvin/check-python-version@ee112e7afa6e57d4ead91bd84904fbfeb8955004 # v4id: check-python-versionwith:version_file_path: invokeai/version/invokeai_version.py@@ -76,7 +79,7 @@ jobs:path: dist/- name: publish distribution to TestPyPI- uses: pypa/gh-action-pypi-publish@release/v1+ uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2with:repository-url: https://test.pypi.org/legacy/@@ -105,4 +108,4 @@ jobs:path: dist/- name: publish distribution to PyPI- uses: pypa/gh-action-pypi-publish@release/v1+ uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2diff --git a/.github/workflows/typegen-checks.yml b/.github/workflows/typegen-checks.ymlindex a7e1015089..87b4f39a2d 100644--- a/.github/workflows/typegen-checks.yml+++ b/.github/workflows/typegen-checks.yml@@ -36,6 +36,9 @@ on:# the run id and never cancel each other. The group names the workflow literally# because `github.workflow` is the caller's name inside a reusable workflow, and release.yml calls# several of these at once.+permissions:+ contents: read+concurrency:group: typegen-checks-${{ github.event.pull_request.number || github.run_id }}cancel-in-progress: true@@ -49,7 +52,7 @@ jobs:timeout-minutes: 15 # expected run time: <5 minsteps:- name: checkout- uses: useblacksmith/checkout@v1+ uses: useblacksmith/checkout@25227e61ff9dafe400e22fa487b673eac4e4409a # v1.8.1- name: Free up more disk space on the runner# https://github.com/actions/runner-images/issues/2840#issuecomment-1284059930@@ -89,7 +92,7 @@ jobs:- name: setup uvif: ${{ steps.changed-files.outputs.src_any_changed == 'true' || inputs.always_run == true }}- uses: astral-sh/[email protected]+ uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0with:version: '0.11.28' # When updating this, make sure the version in launcher's package.json gets updated too.enable-cache: truediff --git a/.github/workflows/uv-lock-checks.yml b/.github/workflows/uv-lock-checks.ymlindex 0774b899ea..63fede0a75 100644--- a/.github/workflows/uv-lock-checks.yml+++ b/.github/workflows/uv-lock-checks.yml@@ -39,6 +39,9 @@ on:# the run id and never cancel each other. The group names the workflow literally# because `github.workflow` is the caller's name inside a reusable workflow, and release.yml calls# several of these at once.+permissions:+ contents: read+concurrency:group: uv-lock-checks-${{ github.event.pull_request.number || github.run_id }}cancel-in-progress: true@@ -52,7 +55,7 @@ jobs:timeout-minutes: 5 # expected run time: <1 minsteps:- name: checkout- uses: useblacksmith/checkout@v1+ uses: useblacksmith/checkout@25227e61ff9dafe400e22fa487b673eac4e4409a # v1.8.1- name: check for changed python filesif: ${{ inputs.always_run != true }}@@ -75,7 +78,7 @@ jobs:- name: setup uvif: ${{ steps.changed-files.outputs.uvlock-pyprojecttoml_any_changed == 'true' || steps.changed-files.outputs.aarch64check_any_changed == 'true' || inputs.always_run == true }}- uses: astral-sh/[email protected]+ uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0with:version: '0.11.28' # When updating this, make sure the version in launcher's package.json gets updated too.enable-cache: true