mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
ci: set minimal permissions on GitHub Workflows (#2980)
Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
This commit is contained in:
parent
482920808f
commit
14edcfaffd
2
.github/workflows/clang-format-check.yml
vendored
2
.github/workflows/clang-format-check.yml
vendored
@ -1,6 +1,8 @@
|
||||
name: clang-format Check
|
||||
on:
|
||||
pull_request:
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
formatting-check:
|
||||
name: Formatting Check
|
||||
|
4
.github/workflows/clang-format-fix.yml
vendored
4
.github/workflows/clang-format-fix.yml
vendored
@ -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
|
||||
|
3
.github/workflows/cmake-ctest.yml
vendored
3
.github/workflows/cmake-ctest.yml
vendored
@ -9,6 +9,9 @@ on:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or
|
||||
# in parallel
|
||||
jobs:
|
||||
|
2
.github/workflows/codespell.yml
vendored
2
.github/workflows/codespell.yml
vendored
@ -3,6 +3,8 @@
|
||||
# https://github.com/codespell-project/actions-codespell
|
||||
name: codespell
|
||||
on: [push, pull_request]
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
codespell:
|
||||
name: Check for spelling errors
|
||||
|
3
.github/workflows/daily-build.yml
vendored
3
.github/workflows/daily-build.yml
vendored
@ -6,6 +6,9 @@ on:
|
||||
schedule:
|
||||
- cron: "6 0 * * *"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or
|
||||
# in parallel.
|
||||
jobs:
|
||||
|
3
.github/workflows/hdfeos5.yml
vendored
3
.github/workflows/hdfeos5.yml
vendored
@ -19,6 +19,9 @@ concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.sha || github.event.pull_request.number }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build hdfeos5
|
||||
|
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@ -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.
|
||||
|
3
.github/workflows/tarball.yml
vendored
3
.github/workflows/tarball.yml
vendored
@ -11,6 +11,9 @@ on:
|
||||
description: "The common base name of the source tarballs"
|
||||
value: ${{ jobs.create_tarball.outputs.file_base }}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or
|
||||
# in parallel
|
||||
jobs:
|
||||
|
Loading…
x
Reference in New Issue
Block a user