Skip to content

Commit efa8e6d

Browse files
committed
chore: add specific permissions to workflows (#326)
Signed-off-by: Jonathan Gonzalez V. <[email protected]>
1 parent 3ada314 commit efa8e6d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/hugo_build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ on:
99
# Allows you to run this workflow manually from the Actions tab
1010
workflow_dispatch:
1111

12+
permissions: read-all
13+
1214
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1315
jobs:
1416
# This workflow contains a single job called "build"
1517
build:
1618
# The type of runner that the job will run on
1719
runs-on: ubuntu-latest
18-
20+
permissions:
21+
contents: write
1922
# Steps represent a sequence of tasks that will be executed as part of the job
2023
steps:
2124
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it

0 commit comments

Comments
 (0)