1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

[CI skip] Configured remaining workflow permissions

Hopefully I did this right? 👀
This commit is contained in:
TheBusyBiscuit 2022-07-12 15:05:15 +02:00
parent 8dff6dbb86
commit f0730237e2
9 changed files with 31 additions and 3 deletions

View File

@ -8,12 +8,14 @@ permissions:
jobs:
auto-approve:
permissions:
pull-requests: write # for hmarr/auto-approve-action to approve PRs
name: Auto approve Pull Request
runs-on: ubuntu-latest
## Only run this on the main repo
# for hmarr/auto-approve-action to approve PRs
permissions:
pull-requests: write
# Only run this on the main repo
if: github.event.pull_request.head.repo.full_name == 'Slimefun/Slimefun4'
steps:

View File

@ -7,6 +7,9 @@ on:
- '!src/main/resources/languages/**'
- 'pom.xml'
permissions:
contents: read
jobs:
report:

View File

@ -4,6 +4,10 @@ on:
issue_comment:
types: [created]
permissions:
contents: read
issues: write
jobs:
comment:

View File

@ -4,6 +4,10 @@ on:
issues:
types: [closed]
permissions:
contents: read
issues: write
jobs:
label:

View File

@ -5,6 +5,10 @@ on:
branches:
- master
permissions:
contents: read
issues: write
jobs:
validate:

View File

@ -5,6 +5,10 @@ on:
types:
- opened
permissions:
contents: read
issues: write
jobs:
pr-labeler:

View File

@ -7,6 +7,9 @@ on:
paths:
- 'src/main/resources/languages/en/**.yml'
permissions:
contents: read
jobs:
notify:

View File

@ -8,6 +8,9 @@ on:
branches:
- master
permissions:
contents: read
jobs:
linter:

1
.gitignore vendored
View File

@ -12,4 +12,5 @@ dependency-reduced-pom.xml
.factorypath
.project
*.iml
*.bak
.DS_Store