mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-07-31 08:27:29 +02:00
chore: disable workflows in forks
This commit is contained in:
@@ -14,6 +14,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
contrib-readme-job:
|
contrib-readme-job:
|
||||||
|
if: github.repository == 'zhom/donutbrowser'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Automatically update the contributors list in the README
|
name: Automatically update the contributors list in the README
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
security-scan:
|
security-scan:
|
||||||
name: Security Vulnerability Scan
|
name: Security Vulnerability Scan
|
||||||
if: ${{ github.actor == 'dependabot[bot]' }}
|
if: github.repository == 'zhom/donutbrowser' && github.actor == 'dependabot[bot]'
|
||||||
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@c5996e0193a3df57d695c1b8a1dec2a4c62e8730" # v2.3.3
|
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@c5996e0193a3df57d695c1b8a1dec2a4c62e8730" # v2.3.3
|
||||||
with:
|
with:
|
||||||
scan-args: |-
|
scan-args: |-
|
||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
|
|
||||||
lint-js:
|
lint-js:
|
||||||
name: Lint JavaScript/TypeScript
|
name: Lint JavaScript/TypeScript
|
||||||
if: ${{ github.actor == 'dependabot[bot]' }}
|
if: github.repository == 'zhom/donutbrowser' && github.actor == 'dependabot[bot]'
|
||||||
uses: ./.github/workflows/lint-js.yml
|
uses: ./.github/workflows/lint-js.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
permissions:
|
permissions:
|
||||||
@@ -36,7 +36,7 @@ jobs:
|
|||||||
|
|
||||||
lint-rust:
|
lint-rust:
|
||||||
name: Lint Rust
|
name: Lint Rust
|
||||||
if: ${{ github.actor == 'dependabot[bot]' }}
|
if: github.repository == 'zhom/donutbrowser' && github.actor == 'dependabot[bot]'
|
||||||
uses: ./.github/workflows/lint-rs.yml
|
uses: ./.github/workflows/lint-rs.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
permissions:
|
permissions:
|
||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
|
|
||||||
codeql:
|
codeql:
|
||||||
name: CodeQL
|
name: CodeQL
|
||||||
if: ${{ github.actor == 'dependabot[bot]' }}
|
if: github.repository == 'zhom/donutbrowser' && github.actor == 'dependabot[bot]'
|
||||||
uses: ./.github/workflows/codeql.yml
|
uses: ./.github/workflows/codeql.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
permissions:
|
permissions:
|
||||||
@@ -55,7 +55,7 @@ jobs:
|
|||||||
|
|
||||||
spellcheck:
|
spellcheck:
|
||||||
name: Spell Check
|
name: Spell Check
|
||||||
if: ${{ github.actor == 'dependabot[bot]' }}
|
if: github.repository == 'zhom/donutbrowser' && github.actor == 'dependabot[bot]'
|
||||||
uses: ./.github/workflows/spellcheck.yml
|
uses: ./.github/workflows/spellcheck.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
permissions:
|
permissions:
|
||||||
@@ -63,7 +63,7 @@ jobs:
|
|||||||
|
|
||||||
dependabot-automerge:
|
dependabot-automerge:
|
||||||
name: Dependabot Automerge
|
name: Dependabot Automerge
|
||||||
if: ${{ github.actor == 'dependabot[bot]' }}
|
if: github.repository == 'zhom/donutbrowser' && github.actor == 'dependabot[bot]'
|
||||||
needs: [security-scan, lint-js, lint-rust, codeql, spellcheck]
|
needs: [security-scan, lint-js, lint-rust, codeql, spellcheck]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze-issue:
|
analyze-issue:
|
||||||
if: github.event_name == 'issues'
|
if: github.repository == 'zhom/donutbrowser' && github.event_name == 'issues'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -67,7 +67,7 @@ jobs:
|
|||||||
- Never exceed 6 items total.
|
- Never exceed 6 items total.
|
||||||
|
|
||||||
analyze-pr:
|
analyze-pr:
|
||||||
if: github.event_name == 'pull_request_target' && github.actor != 'dependabot[bot]'
|
if: github.repository == 'zhom/donutbrowser' && github.event_name == 'pull_request_target' && github.actor != 'dependabot[bot]'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -118,6 +118,7 @@ jobs:
|
|||||||
|
|
||||||
opencode-command:
|
opencode-command:
|
||||||
if: |
|
if: |
|
||||||
|
github.repository == 'zhom/donutbrowser' &&
|
||||||
(github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment') &&
|
(github.event_name == 'issue_comment' || github.event_name == 'pull_request_review_comment') &&
|
||||||
(contains(github.event.comment.body, ' /oc') ||
|
(contains(github.event.comment.body, ' /oc') ||
|
||||||
startsWith(github.event.comment.body, '/oc') ||
|
startsWith(github.event.comment.body, '/oc') ||
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
generate-release-notes:
|
generate-release-notes:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.workflow_run.conclusion == 'success' && startsWith(github.event.workflow_run.head_branch, 'v')
|
if: github.repository == 'zhom/donutbrowser' && github.event.workflow_run.conclusion == 'success' && startsWith(github.event.workflow_run.head_branch, 'v')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
security-scan:
|
security-scan:
|
||||||
|
if: github.repository == 'zhom/donutbrowser'
|
||||||
name: Security Vulnerability Scan
|
name: Security Vulnerability Scan
|
||||||
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@c5996e0193a3df57d695c1b8a1dec2a4c62e8730" # v2.3.3
|
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@c5996e0193a3df57d695c1b8a1dec2a4c62e8730" # v2.3.3
|
||||||
with:
|
with:
|
||||||
@@ -33,6 +34,7 @@ jobs:
|
|||||||
actions: read
|
actions: read
|
||||||
|
|
||||||
lint-js:
|
lint-js:
|
||||||
|
if: github.repository == 'zhom/donutbrowser'
|
||||||
name: Lint JavaScript/TypeScript
|
name: Lint JavaScript/TypeScript
|
||||||
uses: ./.github/workflows/lint-js.yml
|
uses: ./.github/workflows/lint-js.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
@@ -40,6 +42,7 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
lint-rust:
|
lint-rust:
|
||||||
|
if: github.repository == 'zhom/donutbrowser'
|
||||||
name: Lint Rust
|
name: Lint Rust
|
||||||
uses: ./.github/workflows/lint-rs.yml
|
uses: ./.github/workflows/lint-rs.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
@@ -47,6 +50,7 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
codeql:
|
codeql:
|
||||||
|
if: github.repository == 'zhom/donutbrowser'
|
||||||
name: CodeQL
|
name: CodeQL
|
||||||
uses: ./.github/workflows/codeql.yml
|
uses: ./.github/workflows/codeql.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
@@ -57,6 +61,7 @@ jobs:
|
|||||||
actions: read
|
actions: read
|
||||||
|
|
||||||
spellcheck:
|
spellcheck:
|
||||||
|
if: github.repository == 'zhom/donutbrowser'
|
||||||
name: Spell Check
|
name: Spell Check
|
||||||
uses: ./.github/workflows/spellcheck.yml
|
uses: ./.github/workflows/spellcheck.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
@@ -64,6 +69,7 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
release:
|
release:
|
||||||
|
if: github.repository == 'zhom/donutbrowser'
|
||||||
needs: [security-scan, lint-js, lint-rust, codeql, spellcheck]
|
needs: [security-scan, lint-js, lint-rust, codeql, spellcheck]
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -232,6 +238,7 @@ jobs:
|
|||||||
# commit_message: "docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]"
|
# commit_message: "docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]"
|
||||||
|
|
||||||
publish-repos:
|
publish-repos:
|
||||||
|
if: github.repository == 'zhom/donutbrowser'
|
||||||
needs: [release]
|
needs: [release]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
security-scan:
|
security-scan:
|
||||||
|
if: github.repository == 'zhom/donutbrowser'
|
||||||
name: Security Vulnerability Scan
|
name: Security Vulnerability Scan
|
||||||
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@c5996e0193a3df57d695c1b8a1dec2a4c62e8730" # v2.3.3
|
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@c5996e0193a3df57d695c1b8a1dec2a4c62e8730" # v2.3.3
|
||||||
with:
|
with:
|
||||||
@@ -32,6 +33,7 @@ jobs:
|
|||||||
actions: read
|
actions: read
|
||||||
|
|
||||||
lint-js:
|
lint-js:
|
||||||
|
if: github.repository == 'zhom/donutbrowser'
|
||||||
name: Lint JavaScript/TypeScript
|
name: Lint JavaScript/TypeScript
|
||||||
uses: ./.github/workflows/lint-js.yml
|
uses: ./.github/workflows/lint-js.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
@@ -39,6 +41,7 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
lint-rust:
|
lint-rust:
|
||||||
|
if: github.repository == 'zhom/donutbrowser'
|
||||||
name: Lint Rust
|
name: Lint Rust
|
||||||
uses: ./.github/workflows/lint-rs.yml
|
uses: ./.github/workflows/lint-rs.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
@@ -46,6 +49,7 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
codeql:
|
codeql:
|
||||||
|
if: github.repository == 'zhom/donutbrowser'
|
||||||
name: CodeQL
|
name: CodeQL
|
||||||
uses: ./.github/workflows/codeql.yml
|
uses: ./.github/workflows/codeql.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
@@ -56,6 +60,7 @@ jobs:
|
|||||||
actions: read
|
actions: read
|
||||||
|
|
||||||
spellcheck:
|
spellcheck:
|
||||||
|
if: github.repository == 'zhom/donutbrowser'
|
||||||
name: Spell Check
|
name: Spell Check
|
||||||
uses: ./.github/workflows/spellcheck.yml
|
uses: ./.github/workflows/spellcheck.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
@@ -63,6 +68,7 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
rolling-release:
|
rolling-release:
|
||||||
|
if: github.repository == 'zhom/donutbrowser'
|
||||||
needs: [security-scan, lint-js, lint-rust, codeql, spellcheck]
|
needs: [security-scan, lint-js, lint-rust, codeql, spellcheck]
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -236,6 +242,7 @@ jobs:
|
|||||||
rm -f $RUNNER_TEMP/build_certificate.p12 || true
|
rm -f $RUNNER_TEMP/build_certificate.p12 || true
|
||||||
|
|
||||||
update-nightly-release:
|
update-nightly-release:
|
||||||
|
if: github.repository == 'zhom/donutbrowser'
|
||||||
needs: [rolling-release]
|
needs: [rolling-release]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
|
if: github.repository == 'zhom/donutbrowser'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
issues: write
|
issues: write
|
||||||
|
|||||||
Reference in New Issue
Block a user