Update tests.yml Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com> Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>
@@ -5,6 +5,9 @@ on:
branches:
- master
+permissions:
+ contents: read
+
jobs:
Test:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
@@ -39,6 +42,8 @@ jobs:
run: npm run test:lint
Release:
+ permissions:
+ contents: write
needs: [Test, Lint]
if: |
github.ref == 'refs/heads/master' &&