Skip to content

Commit

Permalink
IGNITE-20466 Get rid of external actions
Browse files Browse the repository at this point in the history
  • Loading branch information
skorotkov committed Jul 24, 2024
1 parent 428b1fb commit 6cacb60
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/sonar-pr-from-fork-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,22 @@ jobs:
id: check
with:
script: |
const { jobs } = await github.rest.actions.listJobsForWorkflowRunAttempt({
const { data } = await github.rest.actions.listJobsForWorkflowRunAttempt({
...context.repo,
run_id: context.runId,
attempt_number: process.env.GITHUB_RUN_ATTEMPT,
});
const job_url = data.jobs[0].html_url;
const { check } = await github.rest.checks.create({
...context.repo,
name: 'Sonar Quality Pull Request Analysis',
head_sha: process.env.pr_head_sha,
status: 'in_progress',
output: {
title: 'Sonar Quality Pull Request Analysis',
summary: `[Details ...](${jobs.jobs[0].html_url})`
summary: '[Details ...](' + job_url + ')'
}
});
Expand Down

0 comments on commit 6cacb60

Please sign in to comment.