diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ae04e115c7..c2aaeafbe2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,8 @@ # documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions name: Tests on: [push, pull_request] +permissions: + contents: read # to fetch code (actions/checkout) jobs: build: runs-on: ubuntu-20.04 diff --git a/.github/workflows/tests_archdetect.yml b/.github/workflows/tests_archdetect.yml index 4fffce0dde..5732574ea2 100644 --- a/.github/workflows/tests_archdetect.yml +++ b/.github/workflows/tests_archdetect.yml @@ -1,6 +1,8 @@ # documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions name: Tests for eessi_archdetect.sh on: [push, pull_request] +permissions: + contents: read # to fetch code (actions/checkout) jobs: build: runs-on: ubuntu-20.04 diff --git a/.github/workflows/tests_init.yml b/.github/workflows/tests_init.yml index 027cc1a540..6df8b0a039 100644 --- a/.github/workflows/tests_init.yml +++ b/.github/workflows/tests_init.yml @@ -1,6 +1,8 @@ # documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions name: Tests for init scripts on: [push, pull_request] +permissions: + contents: read # to fetch code (actions/checkout) jobs: build: runs-on: ubuntu-18.04 diff --git a/.github/workflows/tests_scripts.yml b/.github/workflows/tests_scripts.yml index ca8c2b930a..18fcd7b255 100644 --- a/.github/workflows/tests_scripts.yml +++ b/.github/workflows/tests_scripts.yml @@ -18,6 +18,8 @@ on: - run_in_compat_layer_env.sh - utils.sh - update_lmod_cache.sh +permissions: + contents: read # to fetch code (actions/checkout) jobs: build: runs-on: ubuntu-20.04