summaryrefslogtreecommitdiffstats
path: root/.github/workflows/main.yml
diff options
context:
space:
mode:
authorDiogo Teles Sant'Anna <diogoteles@google.com>2023-05-18 21:08:10 (GMT)
committerGitHub <noreply@github.com>2023-05-18 21:08:10 (GMT)
commit14edcfaffd6c2bbe487236742ae19093be9fe9dd (patch)
treeca5f2ba69a559467f5806d912c50448b76882402 /.github/workflows/main.yml
parent482920808f1ec5f33770af1360bdf56ebec5eb8c (diff)
downloadhdf5-14edcfaffd6c2bbe487236742ae19093be9fe9dd.zip
hdf5-14edcfaffd6c2bbe487236742ae19093be9fe9dd.tar.gz
hdf5-14edcfaffd6c2bbe487236742ae19093be9fe9dd.tar.bz2
ci: set minimal permissions on GitHub Workflows (#2980)
Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
Diffstat (limited to '.github/workflows/main.yml')
-rw-r--r--.github/workflows/main.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 0711d00..8892588 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -20,6 +20,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.sha || github.event.pull_request.number }}
cancel-in-progress: true
+permissions:
+ contents: read
+
# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel. We just have one job, but the matrix items defined below will
# run in parallel.