K, maybe not as much...
This commit is contained in:
@@ -45,28 +45,19 @@ jobs:
|
|||||||
"base": "main",
|
"base": "main",
|
||||||
"head": "${{ github.ref_name }}"
|
"head": "${{ github.ref_name }}"
|
||||||
}' | jq '{index: .number}' > pr_created.json
|
}' | jq '{index: .number}' > pr_created.json
|
||||||
echo "pr_created=$(jq -c . pr_created.json)" >> "$GITHUB_OUTPUT"
|
echo "pr_created=$(cat pr_created.json | jq -c .index)" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
sonarqube-analysis:
|
- name: Verify PR number
|
||||||
name: SonarQube Analysis
|
run: |
|
||||||
runs-on: ubuntu-latest
|
echo "PR number: ${{ steps.create-pr.outputs.pr_created }}"
|
||||||
needs: check-and-create-pr
|
|
||||||
steps:
|
|
||||||
- name: Checkout Code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
# - name: Start Gitea-Sonarqube Bot
|
# sonarqube-analysis:
|
||||||
# uses: docker://justusbunsi/gitea-sonarqube-bot:v0.3.3
|
# name: SonarQube Analysis
|
||||||
# with:
|
# runs-on: ubuntu-latest
|
||||||
# # Required inputs for the bot
|
# needs: check-and-create-pr
|
||||||
# args: >
|
# steps:
|
||||||
# --sonarqube-url ${{ secrets.SONARQUBE_URL }}
|
# - name: Checkout Code
|
||||||
# --sonarqube-token ${{ secrets.SONARQUBE_TOKEN }}
|
# uses: actions/checkout@v4
|
||||||
# --git-provider github
|
|
||||||
# --git-api-url https://api.github.com
|
|
||||||
# --git-token ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
# --repository my-org/my-repo
|
|
||||||
# --pull-request-id ${{ github.event.pull_request.number }}
|
|
||||||
|
|
||||||
- name: SonarQube Scan
|
- name: SonarQube Scan
|
||||||
uses: sonarsource/sonarqube-scan-action@v4.1.0
|
uses: sonarsource/sonarqube-scan-action@v4.1.0
|
||||||
@@ -117,6 +108,19 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "PR number: ${{ steps.create-pr.outputs.pr_created }}"
|
echo "PR number: ${{ steps.create-pr.outputs.pr_created }}"
|
||||||
|
|
||||||
|
# - name: Start Gitea-Sonarqube Bot
|
||||||
|
# uses: docker://justusbunsi/gitea-sonarqube-bot:v0.3.3
|
||||||
|
# with:
|
||||||
|
# # Required inputs for the bot
|
||||||
|
# args: >
|
||||||
|
# --sonarqube-url ${{ secrets.SONARQUBE_URL }}
|
||||||
|
# --sonarqube-token ${{ secrets.SONARQUBE_TOKEN }}
|
||||||
|
# --git-provider github
|
||||||
|
# --git-api-url https://api.github.com
|
||||||
|
# --git-token ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# --repository my-org/my-repo
|
||||||
|
# --pull-request-id ${{ github.event.pull_request.number }}
|
||||||
|
|
||||||
# - name: Post SonarQube Results as Comment
|
# - name: Post SonarQube Results as Comment
|
||||||
# run: |
|
# run: |
|
||||||
# curl ${{ vars.RINOA_GITEA_URL }}/api/v1/repos/${{ github.repository }}/pulls/${{ steps.create-pr.outputs.pr_created. }}/reviews \
|
# curl ${{ vars.RINOA_GITEA_URL }}/api/v1/repos/${{ github.repository }}/pulls/${{ steps.create-pr.outputs.pr_created. }}/reviews \
|
||||||
|
|||||||
Reference in New Issue
Block a user