Skip to content

Commit

Permalink
Update infisical-secrets-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco authored Jul 25, 2024
1 parent d7bc13b commit 3b76dc5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/infisical-secrets-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Infisical secrets check
on:
workflow_dispatch:
pull_request:
pull_request_target:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -51,7 +52,13 @@ jobs:

- name: Update PR with comment
uses: mshick/add-pr-comment@v2
if: always()
if: >-
always() &&
(
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) ||
(github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository) ||
(github.event_name == 'workflow_dispatch')
)
with:
refresh-message-position: true
message-id: 'secrets-result'
Expand Down

0 comments on commit 3b76dc5

Please sign in to comment.