Github No access to code for app integrations - github

I am trying to setup SonarCloud for Github, and getting the following issue (see screenshot).
I know that github recently changed some of its permission models, so how can i allow an app access to code?
The lead up issue statement is that I want to write an integration via webhook that will also need to have access to code, so would the solution to the above mentioned issue resolve that, or is that a different permission model?

Related

Enable/Disable CodeQL code scanning for a repo using Github Rest API

Is it possible to enable/disable CodeQL code scanning for a repo using Github Rest API in any of the Github accounts?(Personal accounts/ Organization accounts /Enterprise accounts)
https://docs.github.com/en/enterprise-cloud#latest/rest/code-scanning?apiVersion=2022-11-28#about-code-scanning
Please refer to this document.I tried to automate enable/disable codeql for a repo using github rest api.Couldnt find any solution in this documentation.
The API only seems to provide endpoints for getting code scanning results at the moment. Also, until recently you always had to include configuration files in your repository to set up CodeQL code scanning. And depending on what languages you want to scan you might still need configuration files, see the documentation.
However, if you have already set up CodeQL code scanning manually you could maybe use the REST API endpoints for disabling and enabling the already existing code scanning workflow.
Disabling CodeQL code scanning (through the REST API) seems like a rather uncommon use case. Could you explain your use case a bit more in detail? Maybe there are better ways to solve this, for example you can customize which severities cause a pull request check failure.

How to implement accessibility linting in GitHub actions?

I want to upgrade our GitHub workflows with accessibility linting based on WCAG 2.1. If it's possible I want to define the level too like AA.
I don't want to run a full test on a website, only make a quick linting on the pull requests. The whole site testing will be the next step, but now I want to focusing to pull requests only.
I checked pa11y and several repos based on this, but as I see this solution can test only a working website and not a pull request.
Is there any working solution for this?

Release pipelines not visible on Azure DevOps page

I can view all features except Release pipelines which is showing empty screen for me as shown below. I have tried different browsers such as Google Chrome and Microsoft Edge, both showing empty screen. I have verified that I have full access permissions and Visual Studio subscription also. Let me know if you ever faced such issue and a solution for this. Thanks.
You could troubleshoot this issue by checking following steps.
Go to Organization Settings>>Users page to check if your access level, make sure that you are not StakeHolder.
Go to this Project Settings>>Permissions>>Users tab to find you, and check which groups that you belong to. Usually members of Contributors group can freely access to releases page.
Check if others in the same group have the same issue, or just you have this issue.
Try this in other computers to check if there are some plugins or extensions which cause this issue.
If you are behind firewall or proxy, please check if the requests are blocked. You could click F12 to check the browser network requests.
BTW, we find that there are service events, which might causes this issue, you could monitor it.

Github checks + action integration

I am trying to implement eslint check everytime I push code in GitHub and I came across checks(https://developer.github.com/apps/quickstart-guides/creating-ci-tests-with-the-checks-api/) in GitHub, but get couldn’t get much on “how-to setup” though it has all the apis and other stuff to integrate eslint with checks.
FYI, I have built a bot to check the git events using probot.github.io and it works well. Now I want to integrate checks with it.
Any suggestions ?
Thanks in advance.
There are a number of ESLint GitHub Actions published to the marketplace that will do linting and annotations of pull requests. Perhaps one of those will fit your use-case.
Check them out here:
https://github.com/marketplace?utf8=%E2%9C%93&type=actions&query=eslint

"Resource not accessible by integration" when setting status as organisation

I was writing a small integration for github (https://github.com/ligi/kontinuum) which works fine when using with the user that I created it with. Now I wanted to use this integration for an organisation - unfortunately I get the following error when trying to write a status for a commit:
{"message":"Resource not accessible by integration","documentation_url":"https://developer.github.com/v3"}
Reading the documentation there I do not see why writing a status should not work in this context. I think this might be a bug - posting this here as a first stage to a potential bug-report (anyone knows where to report github integration bugs?) and the search for a workaround.