diff --git a/.github/workflows/build-pkgs.yml b/.github/workflows/build-pkgs.yml index da53a703..a48e35ea 100644 --- a/.github/workflows/build-pkgs.yml +++ b/.github/workflows/build-pkgs.yml @@ -11,6 +11,8 @@ on: jobs: build-rpm: runs-on: ubuntu-latest + if: '!github.event.repository.fork' + env: # _github_home is the dir used as a volume by the container RPMDIR: /home/runner/work/_temp/_github_home/rpmbuild diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7962f023..29501c12 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -19,6 +19,8 @@ jobs: analyze: name: Analyze runs-on: ubuntu-latest + if: '!github.event.repository.fork' + permissions: actions: read contents: read