Skip to content

Commit b2c77f3

Browse files
committed
CI: guard public release workflows outside NVIDIA
Gate the release workflow roots so inherited definitions cannot create draft releases or reach external publishing operations in the private repository.
1 parent 2b46c76 commit b2c77f3

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎.github/workflows/release-cuda-pathfinder.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
# Collect release metadata, find the CI run, create a draft release.
3434
# --------------------------------------------------------------------------
3535
prepare:
36+
if: ${{ github.repository_owner == 'nvidia' }}
3637
runs-on: ubuntu-latest
3738
permissions:
3839
contents: write

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ defaults:
7676

7777
jobs:
7878
determine-run-id:
79+
if: ${{ github.repository_owner == 'nvidia' }}
7980
runs-on: ubuntu-latest
8081
outputs:
8182
run-id: ${{ steps.lookup-run-id.outputs.run-id }}
@@ -103,6 +104,7 @@ jobs:
103104
echo "run-id=$RUN_ID" >> "$GITHUB_OUTPUT"
104105
105106
check-tag:
107+
if: ${{ github.repository_owner == 'nvidia' }}
106108
runs-on: ubuntu-latest
107109
steps:
108110
- name: Checkout Source
@@ -154,6 +156,7 @@ jobs:
154156
fi
155157
156158
check-release-notes:
159+
if: ${{ github.repository_owner == 'nvidia' }}
157160
runs-on: ubuntu-latest
158161
steps:
159162
- name: Checkout Source

0 commit comments

Comments
 (0)