Skip to content

Commit

Permalink
Add an owner check for release workflows to avoid running it on forks (
Browse files Browse the repository at this point in the history
…#153)

* Add repo owner checks
* Update build.yml
  • Loading branch information
vasilvas99 committed Sep 19, 2023
1 parent 630fc81 commit ce9bdd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
name: "qemux86_64"
# Eclipse Foundation: Label for large GitHub Build runners (paid)
# See Eclipse HelpDesk #1915
runs-on: ["LargeRunner_16cores_64GB_600GB", "self-hosted"]
runs-on: "LargeRunner_16cores_64GB_600GB"
# runs-on: ubuntu-22.04
# runs-on: self-hosted
# container: debian:bullseye
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ on:
jobs:
call-build:
name: Build
if: github.repository_owner == 'eclipse-leda'
uses: ./.github/workflows/build.yml
secrets: inherit

upload-assets:
name: Upload assets
if: github.repository_owner == 'eclipse-leda'
runs-on: ubuntu-22.04
needs: [ call-build ]
permissions:
Expand Down

0 comments on commit ce9bdd0

Please sign in to comment.