Skip to content

Commit

Permalink
Check github actor is the repo owner for PR docker tags (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
yetanotherchris committed Jul 28, 2024
1 parent 2a07373 commit c5d8b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
run: dotnet publish src/Letmein.Web -c Release --arch x64 --os linux

- name: Docker tag and push (PR)
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' && github.actor == github.repository_owner
run: |
export DOCKER_TAG="$VERSION_NUMBER.$GITHUB_RUN_NUMBER-pr-$PR_NUMBER"
cd src/Letmein.Web
Expand Down

0 comments on commit c5d8b6c

Please sign in to comment.