Skip to content

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.

ci: check the workflows with Plumber on every change (#9944)

Thibaud-Vdbad2e5adefd3b
diff --git a/.github/workflows/plumber.yml b/.github/workflows/plumber.yml
new file mode 100644
index 0000000000..068a3a489e
--- /dev/null
+++ b/.github/workflows/plumber.yml
@@ -0,0 +1,35 @@
+name: plumber
+
+on:
+ push:
+ branches:
+ - main
+ pull_request:
+
+permissions:
+ contents: read
+
+jobs:
+ plumber:
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+ permissions:
+ contents: read
+ # Lets Plumber read the workflow states and one run log to prove
+ # the token scope, the action documents it.
+ actions: read
+ security-events: write
+ steps:
+ - uses: actions/checkout@v6
+ with:
+ persist-credentials: false
+
+ - uses: getplumber/plumber@e9ad2dc6d6faa2dfd84395aac18e461284062640 # v0.7.16
+ with:
+ # Code scanning upload needs security-events write, which PRs
+ # from forks do not get. The report stays available as a
+ # workflow artifact there.
+ upload-sarif: ${{ github.event.pull_request.head.repo.fork != true }}
+ # Gate at 85 points instead of the all-or-nothing default,
+ # leaves room for a small finding without blocking PRs.
+ min-points: 85
diff --git a/.plumber.yaml b/.plumber.yaml
new file mode 100644
index 0000000000..e8afedb2f8
--- /dev/null
+++ b/.plumber.yaml
@@ -0,0 +1,30 @@
+# Plumber overlay: inherits every control from the CLI's built-in
+# baseline, only the differences for this repository are written here.
+# Run 'plumber config resolve' to see the full effective config.
+extends: plumber:default
+version: '2.0'
+
+github:
+ controls:
+ githubActionMustComeFromAuthorizedSources:
+ # Keep the curated default list and trust the runner, change
+ # detection and release tooling this repository uses on top of
+ # it, all pinned by commit.
+ includePlumberDefaults: true
+ trustedGithubActions:
+ - dorny/paths-filter
+ - nschloe/action-cached-lfs-checkout
+ - ppremk/lfs-warning
+ - samuelcolvin/check-python-version
+ - tj-actions/changed-files
+ - useblacksmith/build-push-action
+ - useblacksmith/checkout
+ - useblacksmith/setup-docker-builder
+
+ # main is protected. The release/* branches are frozen history
+ # from earlier releases, keep the requirement on the branch
+ # releases are actually cut from.
+ branchMustBeProtected:
+ defaultMustBeProtected: true
+ namePatterns:
+ - main