distinguish API before and after GHES 3.2#11841
Conversation
before 3.2: API endpoints work at repository level only from 3.2: API endpoints also include org
Automatically generated comment ℹ️This comment is automatically generated and will be overwritten every time changes are committed to this branch. The table contains an overview of files in the Content directory changesYou may find it useful to copy this table into the pull request summary. There you can edit it to share links to important articles or changes and to give a high-level overview of how the changes in your pull request support the overall goals of the pull request.
|
|
@pberthonneau |
There was a problem hiding this comment.
@pberthonneau - thanks for opening this PR ✨
or your organization is only valid from 3.2 because before there is not secret scanning API at org level.
You're right. This is a bug in the current docs and your fix for this looks great 👍🏻
I have also removed the word private because for ghes with advanced security, secret scanning work the same way on public, internal and private repos. I assume this is the same for ghec.
I think you're also right that the word "private" here is wrong for GHES, but I think that it is correct for GHEC where public repositories are treated differently. I'll check with the secret scanning team. If I'm right, then I'll apply my suggested change to your PR and look at whether we can also get the API reference docs updated for GHES.
felicitymay
left a comment
There was a problem hiding this comment.
I've checked the preview: About secret scanning and this now accurately:
- Mentions organizations only for GHES 3.2+ and GitHub.com
- Mentions private repositories only for GitHub.com versions
I've opened an internal issue for the other bug you spotted. The API reference docs for GHES should not mention "private repositories" 🙇🏻♀️
|
The failing test is a known issue and unrelated to these changes, so this PR can be merged if all other tests pass. |
|
Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues ⚡ |
Why:
I made 2 changes in the sentence for ghes:
To monitor results from secret scanning across your private repositories or your organization, you can use the secret scanning API. For more information about API endpoints, see "Secret scanning."
or your organization is only valid from 3.2 because before there is not secret scanning API at org level.
I have also removed the word private because for ghes with advanced security, secret scanning work the same way on public, internal and private repos. I assume this is the same for ghec.
Note that a similar mention of private in the API looks wrong to me. I'm using it with public repositories.
What's being changed:
Check off the following:
Writer impact (This section is for GitHub staff members only):