mirror of
https://github.com/documenso/documenso.git
synced 2025-11-17 02:01:33 +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:
|
||||
build_app:
|
||||
name: Build App
|
||||
if: github.repository == 'documenso/documenso'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
||||
1
.github/workflows/codeql-analysis.yml
vendored
1
.github/workflows/codeql-analysis.yml
vendored
@ -9,6 +9,7 @@ on:
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
if: github.repository == 'documenso/documenso'
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
|
||||
2
.github/workflows/first-interaction.yml
vendored
2
.github/workflows/first-interaction.yml
vendored
@ -13,9 +13,9 @@ permissions:
|
||||
jobs:
|
||||
welcome-message:
|
||||
name: Welcome Contributors
|
||||
if: github.repository == 'documenso/documenso' && github.event.action == 'opened'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
if: github.event.action == 'opened'
|
||||
steps:
|
||||
- uses: actions/first-interaction@v1
|
||||
with:
|
||||
|
||||
2
.github/workflows/issue-count.yml
vendored
2
.github/workflows/issue-count.yml
vendored
@ -10,7 +10,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
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
|
||||
env:
|
||||
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]
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
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
|
||||
env:
|
||||
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:
|
||||
labeler:
|
||||
if: github.repository == 'documenso/documenso'
|
||||
permissions:
|
||||
contents: read
|
||||
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:
|
||||
validate-pr:
|
||||
if: github.repository == 'documenso/documenso'
|
||||
name: Validate PR title
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@ -6,7 +6,7 @@ on:
|
||||
|
||||
jobs:
|
||||
stale:
|
||||
|
||||
if: github.repository == 'documenso/documenso'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
Reference in New Issue
Block a user