mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-31 07:00:06 +07:00
GitHub Workflows security hardening (#7629)
* build: harden push.yml permissions Signed-off-by: Alex <aleksandrosansan@gmail.com> * build: harden deployment.yml permissions Signed-off-by: Alex <aleksandrosansan@gmail.com> * build: harden pr.yml permissions Signed-off-by: Alex <aleksandrosansan@gmail.com> Signed-off-by: Alex <aleksandrosansan@gmail.com>
This commit is contained in:
4
.github/workflows/deployment.yml
vendored
4
.github/workflows/deployment.yml
vendored
@ -5,8 +5,12 @@ on:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
permissions: {}
|
||||
jobs:
|
||||
deploy:
|
||||
permissions:
|
||||
contents: write # for release creation (svenstaro/upload-release-action)
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
3
.github/workflows/pr.yml
vendored
3
.github/workflows/pr.yml
vendored
@ -2,6 +2,9 @@ name: Pull Request Tests
|
||||
|
||||
on: [pull_request, workflow_dispatch]
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
jobs:
|
||||
testPR:
|
||||
runs-on: ubuntu-latest
|
||||
|
4
.github/workflows/push.yml
vendored
4
.github/workflows/push.yml
vendored
@ -2,8 +2,12 @@ name: Tests
|
||||
|
||||
on: [push, workflow_dispatch]
|
||||
|
||||
permissions: {}
|
||||
jobs:
|
||||
runPush:
|
||||
permissions:
|
||||
contents: write # for Update bundles
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
Reference in New Issue
Block a user