WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Merge pull request #8 from matchms/add_graphml #10

Merge pull request #8 from matchms/add_graphml

Merge pull request #8 from matchms/add_graphml #10

Workflow file for this run

name: SonarCloud Scan

Check failure on line 1 in .github/workflows/sonar_scan.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/sonar_scan.yml

Invalid workflow file

(Line: 34, Col: 25): Unrecognized named-value: 'secret'. Located at position 1 within expression: secret.REPO_TOKEN
on:
workflow_run:
workflows: ["CI build and Python-System-matrix tests"]
types:
- completed
jobs:
sonarcloud-pip:
name: SonarCloud Scan on pip build
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion == 'success'
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.workflow_run.head_repository.full_name }}
ref: ${{ github.event.workflow_run.head_branch }}
fetch-depth: 0
- name: Fetch coverage report from artifact
uses: dawidd6/action-download-artifact@v6
with:
workflow: CI_build.yml
name: sonarcloud-data-pip
path: ${{ github.workspace }}
- name: Get PR metadata from json
run: |
echo "PR_NUMBER=$(jq -r '.pr_number' pr_metadata.json)" >> $GITHUB_ENV
echo "HEAD_REF=$(jq -r '.head_ref' pr_metadata.json)" >> $GITHUB_ENV
echo "BASE_REF=$(jq -r '.base_ref' pr_metadata.json)" >> $GITHUB_ENV
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@main
env:
GITHUB_TOKEN: ${{ secret.REPO_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.scm.revision=${{ github.event.workflow_run.head_sha }}
-Dsonar.pullrequest.key=${{ env.PR_NUMBER }}
-Dsonar.pullrequest.branch=${{ env.HEAD_REF }}
-Dsonar.pullrequest.base=${{ env.BASE_REF }}