mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-21 00:55:09 -07:00
[CI] Minimal GitHub Actions permissions (#7165)
* add permission block * add permissions block * add permission block * add permissions block * switch order
This commit is contained in:
parent
da924c2bd6
commit
63a970045a
5 changed files with 15 additions and 1 deletions
2
.github/workflows/codeql.yml
vendored
2
.github/workflows/codeql.yml
vendored
|
|
@ -9,8 +9,8 @@
|
|||
name: CodeQL
|
||||
|
||||
permissions:
|
||||
security-events: write # needed to post results
|
||||
contents: read
|
||||
security-events: write # needed to post results
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
|
|||
3
.github/workflows/desktop-lint.yml
vendored
3
.github/workflows/desktop-lint.yml
vendored
|
|
@ -1,5 +1,8 @@
|
|||
name: Code Style (C++)
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
# Push trigger not needed for linting, we do not allow direct pushes to master
|
||||
pull_request:
|
||||
|
|
|
|||
3
.github/workflows/documentation-build.yml
vendored
3
.github/workflows/documentation-build.yml
vendored
|
|
@ -1,5 +1,8 @@
|
|||
name: Generate Docs
|
||||
|
||||
permissions:
|
||||
contents: read # write permission to the destination repo come from 'deploy_key'
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
|
|
|
|||
4
.github/workflows/translations-pull.yml
vendored
4
.github/workflows/translations-pull.yml
vendored
|
|
@ -1,5 +1,9 @@
|
|||
name: Update Translations
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
|
|
|
|||
4
.github/workflows/translations-push.yml
vendored
4
.github/workflows/translations-push.yml
vendored
|
|
@ -1,5 +1,9 @@
|
|||
name: Update Translation Source
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue