mirror of
https://github.com/documenso/documenso.git
synced 2025-11-17 10:11:35 +10:00
chore: updated workflow permissions and run conditions
Signed-off-by: Adithya Krishna <adi@documenso.com>
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -16,6 +16,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
build_app:
|
build_app:
|
||||||
name: Build App
|
name: Build App
|
||||||
|
if: github.repository == 'documenso/documenso'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|||||||
1
.github/workflows/codeql-analysis.yml
vendored
1
.github/workflows/codeql-analysis.yml
vendored
@ -9,6 +9,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
|
if: github.repository == 'documenso/documenso'
|
||||||
name: Analyze
|
name: Analyze
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
|
|||||||
2
.github/workflows/first-interaction.yml
vendored
2
.github/workflows/first-interaction.yml
vendored
@ -13,9 +13,9 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
welcome-message:
|
welcome-message:
|
||||||
name: Welcome Contributors
|
name: Welcome Contributors
|
||||||
|
if: github.repository == 'documenso/documenso' && github.event.action == 'opened'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
if: github.event.action == 'opened'
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/first-interaction@v1
|
- uses: actions/first-interaction@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
.github/workflows/issue-count.yml
vendored
2
.github/workflows/issue-count.yml
vendored
@ -10,7 +10,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
countIssues:
|
countIssues:
|
||||||
if: ${{ !github.event.issue.pull_request }}
|
if: ${{ !github.event.issue.pull_request }} && github.repository == 'documenso/documenso' && github.event.comment.author_association == 'MEMBER' || 'COLLABORATOR' || 'OWNER'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
MY_ENV_VARIABLE: ${{ secrets.GITHUB_TOKEN }}
|
MY_ENV_VARIABLE: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
4
.github/workflows/pr-count.yml
vendored
4
.github/workflows/pr-count.yml
vendored
@ -6,11 +6,11 @@ on:
|
|||||||
types: [created]
|
types: [created]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
countPRs:
|
countPRs:
|
||||||
if: ${{ github.event.issue.pull_request }}
|
if: ${{ github.event.issue.pull_request }} && github.repository == 'documenso/documenso' && github.event.comment.author_association == 'MEMBER' || 'COLLABORATOR' || 'OWNER'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
MY_ENV_VARIABLE: ${{ secrets.GITHUB_TOKEN }}
|
MY_ENV_VARIABLE: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
1
.github/workflows/pr-labeler.yml
vendored
1
.github/workflows/pr-labeler.yml
vendored
@ -9,6 +9,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
labeler:
|
labeler:
|
||||||
|
if: github.repository == 'documenso/documenso'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|||||||
1
.github/workflows/semantic-pull-requests.yml
vendored
1
.github/workflows/semantic-pull-requests.yml
vendored
@ -13,6 +13,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate-pr:
|
validate-pr:
|
||||||
|
if: github.repository == 'documenso/documenso'
|
||||||
name: Validate PR title
|
name: Validate PR title
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
|
if: github.repository == 'documenso/documenso'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
issues: write
|
issues: write
|
||||||
|
|||||||
Reference in New Issue
Block a user