Browse Source

build: harden main.yml permissions
Signed-off-by: Alex <[email protected]>

Alex 3 years ago
parent
commit
ddb39dd0f4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      .github/workflows/main.yml

+ 2 - 0
.github/workflows/main.yml

@@ -8,6 +8,8 @@ name: build
       - '5.5'
   # Allows you to run this workflow manually from the Actions tab
   workflow_dispatch:
+permissions:
+  contents: read # to fetch code (actions/checkout)
 jobs:
   build:
     runs-on: ubuntu-latest