Check run 'Lint (pull_request)' concluded with 'failure'
I am using APIOps in Github
In my current repo i have artifacts folder that contains multiple API folder , each api contain apiinformation.json, specification.yaml etc.
I want to implement spectral in my current repo and for that i have added spectral.yaml inside(.github/workflows), .spectral,json and action.yaml in root directory.
On pull request , github action run spectral.yaml and giving error Check run 'Lint (pull_request)' concluded with 'failure' Commit 40562d32617573afaa6d51e2698d5c0457c9994a has been annotated
Please help to solve this issue
Current Behavior
Expected Behavior
Possible Workaround/Solution
Steps to Reproduce
Environment
- Version used:
- Environment name and version (e.g. Chrome 39, node.js 5.4):
- Operating System and version (desktop or mobile):
- Link to your environment/workspace/project:
I've recently been hit by this too.
Our internal tooling using the GitHub API to inspect check-runs and we see problems with the Lint (pull_request) reporting late, or reporting failure when the .github/workflows/*.yml check passes.
Spinning up a new Check Run seems like the intended behaviour.
The main program does a createGithubCheck (https://github.com/stoplightio/spectral-action/blob/6416fd018ae38e60136775066eb3e98172143141/src/index.ts#L141) which calls through to octokit.checks.create.
I guess there is a code path somewhere where we don't then call updateGithubCheck properly or in a timely way.
Unfortunately, I don't know this ecosystem well-enough to test and fix.
I'm pretty sure that this issue has the same underlying problem as https://github.com/stoplightio/spectral-action/issues/646
This might also be a regression on https://github.com/stoplightio/spectral-action/issues/506 (similar to #640)