Skip to content

Commit

Permalink
chore(ci): adds repo check to provenance publishing
Browse files Browse the repository at this point in the history
to prevent accidental publication from other repos
  • Loading branch information
sverweij committed Sep 19, 2024
1 parent 3986915 commit c7802df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
publish-as-beta:
if: github.repository == 'sverweij/dependency-cruiser'
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:

jobs:
publish-as-latest:
if: github.repository == 'sverweij/dependency-cruiser'
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down

0 comments on commit c7802df

Please sign in to comment.