chore: disable workflows in forks

This commit is contained in:
zhom
2026-03-24 01:03:05 +04:00
parent c782ef1961
commit b00b773c07
7 changed files with 26 additions and 9 deletions
+7
View File
@@ -17,6 +17,7 @@ env:
jobs:
security-scan:
if: github.repository == 'zhom/donutbrowser'
name: Security Vulnerability Scan
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@c5996e0193a3df57d695c1b8a1dec2a4c62e8730" # v2.3.3
with:
@@ -32,6 +33,7 @@ jobs:
actions: read
lint-js:
if: github.repository == 'zhom/donutbrowser'
name: Lint JavaScript/TypeScript
uses: ./.github/workflows/lint-js.yml
secrets: inherit
@@ -39,6 +41,7 @@ jobs:
contents: read
lint-rust:
if: github.repository == 'zhom/donutbrowser'
name: Lint Rust
uses: ./.github/workflows/lint-rs.yml
secrets: inherit
@@ -46,6 +49,7 @@ jobs:
contents: read
codeql:
if: github.repository == 'zhom/donutbrowser'
name: CodeQL
uses: ./.github/workflows/codeql.yml
secrets: inherit
@@ -56,6 +60,7 @@ jobs:
actions: read
spellcheck:
if: github.repository == 'zhom/donutbrowser'
name: Spell Check
uses: ./.github/workflows/spellcheck.yml
secrets: inherit
@@ -63,6 +68,7 @@ jobs:
contents: read
rolling-release:
if: github.repository == 'zhom/donutbrowser'
needs: [security-scan, lint-js, lint-rust, codeql, spellcheck]
permissions:
contents: write
@@ -236,6 +242,7 @@ jobs:
rm -f $RUNNER_TEMP/build_certificate.p12 || true
update-nightly-release:
if: github.repository == 'zhom/donutbrowser'
needs: [rolling-release]
runs-on: ubuntu-latest
permissions: