Skip to content

Commit df79204

Browse files
authored
Added a check to cancel-in-progress to validate that a user triggered the workflow (#27)
Signed-off-by: Gal Zahavi <38544478+galz10@users.noreply.github.com>
1 parent 3712b75 commit df79204

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/gemini-cli.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ on:
1313

1414
concurrency:
1515
group: '${{ github.workflow }}-${{ github.event.issue.number }}'
16-
cancel-in-progress: true
16+
cancel-in-progress: |-
17+
${{ github.event.sender.type == 'User' && ( github.event.issue.author_association == 'OWNER' || github.event.issue.author_association == 'MEMBER' || github.event.issue.author_association == 'COLLABORATOR') }}
1718
1819
defaults:
1920
run:

workflows/gemini-cli/gemini-cli.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ on:
1313

1414
concurrency:
1515
group: '${{ github.workflow }}-${{ github.event.issue.number }}'
16-
cancel-in-progress: true
16+
cancel-in-progress: |-
17+
${{ github.event.sender.type == 'User' && ( github.event.issue.author_association == 'OWNER' || github.event.issue.author_association == 'MEMBER' || github.event.issue.author_association == 'COLLABORATOR') }}
1718
1819
defaults:
1920
run:

0 commit comments

Comments
 (0)