Skip to content

Commit

Permalink
Merge pull request #11468 from hzi-braunschweig/ci/7542-trivy-scanner…
Browse files Browse the repository at this point in the history
…-new

[#7542] only comment on PR event, not on branch push
  • Loading branch information
MartinWahnschaffe authored Feb 9, 2023
2 parents 4004b6a + d37b114 commit e7a647c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,15 @@ jobs:

- name: Comment with SonarCloud analysis
uses: actions/github-script@v6
if: github.event_name == 'pull_request'
with:
github-token: ${{ secrets.SORMAS_VITAGROUP_TOKEN }}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `SonarCloud analysis: Please find the results at https://sonarcloud.io/dashboard?id=SORMAS-Project&pullRequest=${{ github.event.pull_request.number }}`
body: `SonarCloud analysis: https://sonarcloud.io/dashboard?id=SORMAS-Project&pullRequest=${{ github.event.pull_request.number }}`
})
- name: Perform CodeQL Analysis
Expand Down

0 comments on commit e7a647c

Please sign in to comment.