Fix: Restrict publish workflow to repository owner

The publish workflow was previously triggered on any tag push. This commit restricts the workflow to only run when the tag is pushed by the repository owner, preventing unauthorized publishing. It also adds `issues:write` permissions for future use.
This commit is contained in:
cluny85
2025-06-16 14:28:20 +02:00
parent e3a656469f
commit aa948c892d
+4 -1
View File
@@ -11,6 +11,9 @@ on:
pull_request:
branches: [ master ]
permissions:
issues: write
jobs:
build-and-check:
runs-on: ubuntu-latest
@@ -39,7 +42,7 @@ jobs:
name: "📦 Publish Custom Node to registry"
needs: build-and-check
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
if: ${{ github.repository_owner == 'cluny85' && startsWith(github.ref, 'refs/tags/') }}
steps:
- name: Checkout code
uses: actions/checkout@v4