Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

ci(platform): register scored workflow dispatches (#14277)

Nicholas Tindle1797a44f71cc
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index ff535f8496..5b6c3c677f 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -17,9 +17,15 @@ on:
pull_request:
branches: [ "master", "release-*", "dev" ]
merge_group:
+ workflow_dispatch:
schedule:
- cron: '15 4 * * 0'
+permissions:
+ actions: read
+ contents: read
+ security-events: write
+
jobs:
analyze:
name: Analyze (${{ matrix.language }})
diff --git a/.github/workflows/docs-block-sync.yml b/.github/workflows/docs-block-sync.yml
index 67a59aa1d7..dbafcf1690 100644
--- a/.github/workflows/docs-block-sync.yml
+++ b/.github/workflows/docs-block-sync.yml
@@ -47,6 +47,10 @@ on:
- "autogpt_platform/backend/backend/util/file.py"
- "autogpt_platform/backend/backend/util/sandbox_files.py"
- "autogpt_platform/backend/backend/api/features/store/db.py"
+ workflow_dispatch:
+
+permissions:
+ contents: read
jobs:
check-docs-sync:
diff --git a/.github/workflows/platform-fullstack-ci.yml b/.github/workflows/platform-fullstack-ci.yml
index bbd46b90e5..8698a4f2c0 100644
--- a/.github/workflows/platform-fullstack-ci.yml
+++ b/.github/workflows/platform-fullstack-ci.yml
@@ -15,6 +15,7 @@ on:
- ".github/workflows/scripts/get_package_version_from_lockfile.py"
- "autogpt_platform/**"
merge_group:
+ workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'merge_group' && format('merge-queue-{0}', github.ref) || github.head_ref && format('pr-{0}', github.event.pull_request.number) || github.sha }}
@@ -25,6 +26,9 @@ defaults:
shell: bash
working-directory: autogpt_platform/frontend
+permissions:
+ contents: read
+
jobs:
setup:
runs-on: ubuntu-latest
diff --git a/.github/workflows/pr-overlap-check.yml b/.github/workflows/pr-overlap-check.yml
index c53f56321b..d6c7434d1f 100644
--- a/.github/workflows/pr-overlap-check.yml
+++ b/.github/workflows/pr-overlap-check.yml
@@ -6,6 +6,12 @@ on:
branches:
- dev
- master
+ workflow_dispatch:
+ inputs:
+ pr_number:
+ description: "Pull request number to check"
+ required: true
+ type: number
permissions:
contents: read
@@ -36,4 +42,4 @@ jobs:
# Always succeed - this check informs contributors, it shouldn't block merging
continue-on-error: true
run: |
- python .github/scripts/detect_overlaps.py ${{ github.event.pull_request.number }}
+ python .github/scripts/detect_overlaps.py ${{ github.event.pull_request.number || inputs.pr_number }}