Compare commits

...

5 Commits

Author SHA1 Message Date
Michael B. Gale
6542b465ab Rebuild workflows 2026-10-21 19:39:42 +01:00
Michael B. Gale
5c5132f470 Merge branch 'main' into mbg/skip-fewer-dependabot-workflows 2026-10-21 19:39:20 +01:00
Michael B. Gale
f31b0a8ffd Run workflows when labelled with "Rebuild: Unchanged" 2026-09-10 17:37:59 +01:00
Michael B. Gale
065b8dea87 Add "Rebuild: Unchanged" label to PRs if rebuild workflow makes no changes 2026-09-10 17:25:21 +01:00
Michael B. Gale
546c45705d Refactor Dependabot check expression into constant 2026-09-10 17:15:32 +01:00
59 changed files with 541 additions and 118 deletions

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -61,7 +66,9 @@ jobs:
- os: windows-latest
version: nightly-latest
name: All-platform bundle
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -59,7 +64,9 @@ jobs:
version: nightly-latest
analysis-kinds: risk-assessment
name: Analysis kinds
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -57,7 +62,9 @@ jobs:
- os: ubuntu-latest
version: default
name: "Analyze: 'ref' and 'sha' from inputs"
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -51,7 +56,9 @@ jobs:
- os: windows-latest
version: linked
name: autobuild-action
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -53,7 +58,9 @@ jobs:
- os: windows-latest
version: nightly-latest
name: Autobuild direct tracing (custom working directory)
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -37,7 +42,9 @@ jobs:
- os: ubuntu-latest
version: linked
name: Autobuild working directory
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -53,7 +58,9 @@ jobs:
- os: windows-latest
version: nightly-latest
name: Build mode autobuild
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -57,7 +62,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: Build mode manual
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -39,7 +44,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: Build mode none
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -37,7 +42,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: Build mode rollback
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -37,7 +42,9 @@ jobs:
- os: ubuntu-latest
version: linked
name: 'Bundle: From nightly'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -37,7 +42,9 @@ jobs:
- os: ubuntu-latest
version: toolcache
name: 'Bundle: From toolcache'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -41,7 +46,9 @@ jobs:
- os: windows-latest
version: linked
name: 'Bundle: Caching checks'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -37,7 +42,9 @@ jobs:
- os: ubuntu-latest
version: linked
name: Clean up database cluster directory
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -39,7 +44,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: Config export
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

11
.github/workflows/__config-input.yml generated vendored
View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -37,7 +42,9 @@ jobs:
- os: ubuntu-latest
version: linked
name: Config input
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -41,7 +46,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: 'C/C++: disabling autoinstalling dependencies (Linux)'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -39,7 +44,9 @@ jobs:
- os: macos-latest
version: nightly-latest
name: 'C/C++: autoinstalling dependencies is skipped (macOS)'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -41,7 +46,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: 'C/C++: autoinstalling dependencies (Linux)'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -39,7 +44,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: Diagnostic export
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -61,7 +66,9 @@ jobs:
- os: windows-latest
version: nightly-latest
name: Export file baseline information
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -37,7 +42,9 @@ jobs:
- os: ubuntu-latest
version: linked
name: Extractor ram and threads options test
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

11
.github/workflows/__global-proxy.yml generated vendored
View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -39,7 +44,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: Proxy test
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -59,7 +64,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: 'Go: Custom queries'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -47,7 +52,9 @@ jobs:
- os: ubuntu-latest
version: default
name: 'Go: diagnostic when Go is changed after init step'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -47,7 +52,9 @@ jobs:
- os: ubuntu-latest
version: default
name: 'Go: diagnostic when `file` is not installed'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -47,7 +52,9 @@ jobs:
- os: ubuntu-latest
version: default
name: 'Go: workaround for indirect tracing'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -67,7 +72,9 @@ jobs:
- os: macos-latest
version: nightly-latest
name: 'Go: tracing with autobuilder step'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -67,7 +72,9 @@ jobs:
- os: macos-latest
version: nightly-latest
name: 'Go: tracing with custom build steps'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -67,7 +72,9 @@ jobs:
- os: macos-latest
version: nightly-latest
name: 'Go: tracing with legacy workflow'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -41,7 +46,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: 'Packaging: Download using registries'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
packages: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -41,7 +46,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: Custom source root
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -37,7 +42,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: Job run UUID added to SARIF
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -37,7 +42,9 @@ jobs:
- os: ubuntu-latest
version: linked
name: Language aliases
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

11
.github/workflows/__linux-arm64.yml generated vendored
View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -57,7 +62,9 @@ jobs:
- os: ubuntu-24.04-arm
version: nightly-latest
name: Linux Arm64
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

11
.github/workflows/__local-bundle.yml generated vendored
View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -57,7 +62,9 @@ jobs:
- os: ubuntu-latest
version: linked
name: Local CodeQL bundle
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -91,7 +96,9 @@ jobs:
- os: macos-latest-xlarge
version: nightly-latest
name: Multi-language repository
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -39,7 +44,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: Overlay database init fallback
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -61,7 +66,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: 'Packaging: Config and input passed to the CLI'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -61,7 +66,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: 'Packaging: Config and input'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -61,7 +66,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: 'Packaging: Config file'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -61,7 +66,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: 'Packaging: Action input'
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -72,7 +77,9 @@ jobs:
version: nightly-latest
build-mode: autobuild
name: Per-language bundles
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -59,7 +64,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: Remote config file
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -41,7 +46,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: Resolve environment
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -37,7 +42,9 @@ jobs:
- os: ubuntu-latest
version: default
name: RuboCop multi-language
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

11
.github/workflows/__ruby.yml generated vendored
View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -47,7 +52,9 @@ jobs:
- os: macos-latest
version: nightly-latest
name: Ruby analysis
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

11
.github/workflows/__rust.yml generated vendored
View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -45,7 +50,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: Rust analysis
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -67,7 +72,9 @@ jobs:
- os: macos-latest
version: nightly-latest
name: Split workflow
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

11
.github/workflows/__start-proxy.yml generated vendored
View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -41,7 +46,9 @@ jobs:
- os: windows-latest
version: linked
name: Start proxy
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -41,7 +46,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: Submit SARIF after failure
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: write

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -37,7 +42,9 @@ jobs:
- os: macos-latest-xlarge
version: nightly-latest
name: Swift analysis using autobuild
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -61,7 +66,9 @@ jobs:
- os: macos-latest-xlarge
version: nightly-latest
name: Swift analysis using a custom build command
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -59,7 +64,9 @@ jobs:
- os: ubuntu-latest
version: nightly-latest
name: Test unsetting environment variables
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -57,7 +62,9 @@ jobs:
- os: ubuntu-latest
version: default
name: "Upload-sarif: 'ref' and 'sha' from inputs"
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

11
.github/workflows/__upload-sarif.yml generated vendored
View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -64,7 +69,9 @@ jobs:
version: default
analysis-kinds: code-scanning,code-quality
name: Test different uses of `upload-sarif`
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -12,7 +12,12 @@ on:
branches:
- main
- releases/v*
pull_request: {}
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
merge_group:
types:
- checks_requested
@@ -57,7 +62,9 @@ jobs:
- os: ubuntu-latest
version: linked
name: Use a custom `checkout_path`
if: github.triggering_actor != 'dependabot[bot]'
if: |-
(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||
github.event.label.name == 'Rebuild: Unchanged'
permissions:
contents: read
security-events: read

View File

@@ -33,7 +33,7 @@ jobs:
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 24
cache: 'npm'
cache: "npm"
- name: Remove label
if: github.event_name == 'pull_request'
@@ -140,3 +140,14 @@ jobs:
echo "Pushed a commit to rebuild the Action." \
"Please approve running the PR checks." |
gh pr comment --body-file - --repo github/codeql-action "$PR_NUMBER"
- name: "Add 'Rebuild: Unchanged' label"
if: >-
github.event_name == 'pull_request' &&
steps.push.outputs.changes != 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
gh pr edit --repo github/codeql-action "$PR_NUMBER" \
--add-label "Rebuild: Unchanged"

View File

@@ -508,6 +508,17 @@ function getSetupSteps(checkSpecification: JobSpecification): {
return { inputs: unionAll(inputs), steps };
}
/**
* Condition used to prevent jobs from running for Dependabot PRs
* to avoid unnecessary runs if the "Rebuild" workflow ends up
* changing the JavaScript bundles.
*
* Also allows jobs to run if a PR was labelled with "Rebuild: Unchanged".
*/
const jobRunCheck = new yaml.Scalar(
"(github.event.action != 'labeled' && github.triggering_actor != 'dependabot[bot]') ||\ngithub.event.label.name == 'Rebuild: Unchanged'",
);
/**
* Generates an Actions job from the `checkSpecification`.
*
@@ -578,7 +589,7 @@ function generateJob(
},
},
name: checkSpecification.name,
if: "github.triggering_actor != 'dependabot[bot]'",
if: jobRunCheck,
permissions: {
contents: "read",
"security-events": "read",
@@ -628,7 +639,7 @@ function generateValidationJob(
const validationJob: Record<string, any> = {
name: jobSpecification.name,
if: "github.triggering_actor != 'dependabot[bot]'",
if: jobRunCheck,
needs: [checkName],
permissions: {
contents: "read",
@@ -771,7 +782,9 @@ function main(): void {
push: {
branches: ["main", "releases/v*"],
},
pull_request: {},
pull_request: {
types: ["opened", "synchronize", "reopened", "labeled"],
},
merge_group: {
types: ["checks_requested"],
},