diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index e9b6d1cff8..6af45ec07e 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -33,6 +33,9 @@ on: - '!**Makefile' - '!**md' +permissions: + contents: read + env: CFLAGS: "-Wall -pedantic" # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 2de3da1b77..a7a6315979 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -31,6 +31,9 @@ on: - '!**CMakeLists.txt' - '!**md' +permissions: + contents: read + env: CC: "gcc" FC: "gfortran"