GitHub Workflows security hardening (#6472)
* build: harden action_tools.yml permissions Signed-off-by: Alex <aleksandrosansan@gmail.com> * build: harden action.yml permissions Signed-off-by: Alex <aleksandrosansan@gmail.com> * build: harden action_utest.yml permissions Signed-off-by: Alex <aleksandrosansan@gmail.com> Signed-off-by: Alex <aleksandrosansan@gmail.com>
This commit is contained in:
parent
64a6297840
commit
e0294dab50
3
.github/workflows/action.yml
vendored
3
.github/workflows/action.yml
vendored
@ -21,6 +21,9 @@ on:
|
||||
- '**/README.md'
|
||||
- '**/README_zh.md'
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
3
.github/workflows/action_tools.yml
vendored
3
.github/workflows/action_tools.yml
vendored
@ -27,6 +27,9 @@ on:
|
||||
- '**/*.h'
|
||||
- '**/*.cpp'
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
3
.github/workflows/action_utest.yml
vendored
3
.github/workflows/action_utest.yml
vendored
@ -21,6 +21,9 @@ on:
|
||||
- '**/README.md'
|
||||
- '**/README_zh.md'
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
Loading…
x
Reference in New Issue
Block a user