Skip to content

Commit

Permalink
Fix workflows for pull-requests from forks
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielius1922 authored and Daniel Adam committed Jan 12, 2024
1 parent f74b116 commit a4ef10f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ctt-bot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: OCF Conformance Bot
on:
pull_request:
pull_request_target:
types:
- synchronize
- opened
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sonar-cloud-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ jobs:
hub_args: ${{ matrix.hub_args }}

sonar-cloud-scan:
# don't run for forks
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
name: Sonar Cloud scan
runs-on: ubuntu-22.04
env:
Expand Down

0 comments on commit a4ef10f

Please sign in to comment.