Skip to content

Commit

Permalink
Add a conditional to prevent analysis on forks (#865)
Browse files Browse the repository at this point in the history
Forked repos do not have permission to write to sonarcloud anyway,
disable analysis on forks in general, leaving them to run on the main
upstream repo

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
  • Loading branch information
kdt3rd authored Nov 20, 2020
1 parent c419b10 commit fb6a093
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/analysis_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:

linux_sonarcloud:
name: 'SonarCloud Linux CentOS 7 VFX CY2020 <GCC 6.3.1>'
if: github.repository == ‘AcademySoftwareFoundation/openexr’
# GH-hosted VM. The build runs in CentOS 7 'container' defined below.
runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
# ------------------------------------------------------------------------------
linux_valgrind:
name: 'Valgrind Linux CentOS 7 VFX CY2020 <GCC 6.3.1>'
if: github.repository == ‘AcademySoftwareFoundation/openexr’
# GH-hosted VM. The build runs in CentOS 7 'container' defined below.
runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -151,6 +153,7 @@ jobs:
# ------------------------------------------------------------------------------
linux_fuzz:
name: 'Fuzz Test Linux CentOS 7 VFX CY2020 <GCC 6.3.1>'
if: github.repository == ‘AcademySoftwareFoundation/openexr’
# GH-hosted VM. The build runs in CentOS 7 'container' defined below.
runs-on: ubuntu-latest
container:
Expand Down

0 comments on commit fb6a093

Please sign in to comment.