mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-26 02:35:47 -05: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:
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:
|
||||
|
||||
Reference in New Issue
Block a user