Skip to content

Commit cd15dc1

Browse files
authored
Add finalize workflow for secure sonarcloud checks (#4820)
1 parent 0a09e91 commit cd15dc1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/finalize.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: finalize
3+
on:
4+
workflow_run:
5+
workflows:
6+
- tox
7+
types:
8+
- completed
9+
10+
permissions: read-all
11+
12+
jobs:
13+
finalize:
14+
if: |
15+
github.event.workflow_run.conclusion == 'success' &&
16+
(github.event.workflow_run.event == 'pull_request' ||
17+
(github.event.workflow_run.event == 'push' && github.event.workflow_run.head_branch == 'main'))
18+
uses: ansible/team-devtools/.github/workflows/finalize.yml@main
19+
with:
20+
run-id: ${{ github.event.workflow_run.id }}
21+
workflow-event: ${{ github.event.workflow_run.event }}
22+
head-sha: ${{ github.event.workflow_run.head_sha }}
23+
head-branch: ${{ github.event.workflow_run.head_branch }}
24+
head-repository: ${{ github.event.workflow_run.head_repository.full_name }}
25+
secrets: inherit

0 commit comments

Comments
 (0)