未验证 提交 e0294dab 编写于 作者: A Alex 提交者: GitHub

GitHub Workflows security hardening (#6472)

* build: harden action_tools.yml permissions
Signed-off-by: NAlex <aleksandrosansan@gmail.com>

* build: harden action.yml permissions
Signed-off-by: NAlex <aleksandrosansan@gmail.com>

* build: harden action_utest.yml permissions
Signed-off-by: NAlex <aleksandrosansan@gmail.com>
Signed-off-by: NAlex <aleksandrosansan@gmail.com>
上级 64a62978
......@@ -21,6 +21,9 @@ on:
- '**/README.md'
- '**/README_zh.md'
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
build:
runs-on: ubuntu-latest
......
......@@ -27,6 +27,9 @@ on:
- '**/*.h'
- '**/*.cpp'
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
test:
runs-on: ubuntu-latest
......
......@@ -21,6 +21,9 @@ on:
- '**/README.md'
- '**/README_zh.md'
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
test:
runs-on: ubuntu-latest
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册