summaryrefslogtreecommitdiffstats
path: root/.github/workflows/clang-format-fix.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/clang-format-fix.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/clang-format-fix.yml')
-rw-r--r--.github/workflows/clang-format-fix.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/.github/workflows/clang-format-fix.yml b/.github/workflows/clang-format-fix.yml
index 00d2352..5981118 100644
--- a/.github/workflows/clang-format-fix.yml
+++ b/.github/workflows/clang-format-fix.yml
@@ -11,11 +11,15 @@ name: clang-format Commit Changes
on:
workflow_dispatch:
push:
+permissions:
+ contents: read
jobs:
formatting-check:
name: Commit Format Changes
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip-ci')"
+ permissions:
+ contents: write # In order to allow EndBug/add-and-commit to commit changes
steps:
- uses: actions/checkout@v3
- name: Fix C and Java formatting issues detected by clang-format