-
Notifications
You must be signed in to change notification settings - Fork 60.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
publish reference documentation #4612
Comments
Hey @Morriz Thanks for reaching out! We've got to make sure our docs balance having every possible answer with being maintainable and readable, so we don't document absolutely everything. Please keep in mind that repeatedly opening the same issue (or very similar issues), can be considered a violation of the harassment clause of our Code of Conduct. Thanks so much for your passion in improving the GitHub docs! |
It is more about having answers, but about having reference documentation that is complete...so made by machines, not humans |
@janiceilene where can I take this concern now that I get shut down twice already? |
As a developer using Github Actions this has been a constant frustration as well. Often when something in the reference is vague, it can be difficult to seek out the answers we seek for clarification. Official responses at best may reference documentation for API responses elsewhere unrelated to Github Actions. That may be sufficient for those familiar with the documentation and API's, but for those whom rarely are involved with needing to look through Github's various docs, it's not a pleasant experience. Rather than blame the users, consider that the documentation process itself is at fault? You can still provide the balance you want by default, while catering to more complete documentation upon user action, commonly known as progressive disclosure in UX design. If the concern is regarding duplicate content, the documentation ideally would have a build process that share common data (eg with mkdocs there is a snippets extension for exactly this purpose). I would hope that all the API response examples are not copy/paste into docs, they can be version controlled as separate files and imported as part of the build process. Regarding any concerns about adding verbosity..Have admonitions that are collapsed by default like this. When the user is actually interested in the information they can interact with it to view it. This isn't the first time I saw requests to address problems with the docs being dismissed for such reasons. I hope that Github takes the feedback more seriously, seeing as it has done so well at becoming the dominant CI of choice on it's own platform. We lose far more time attempting to search and find answers when the documentation lacks. I understand that the pages are lengthy as-is, but I'm provided with structured documents (and ctrl+f) to quickly view content of interest. Meanwhile when information is lacking, I can find multiple users confused and sharing workarounds that aren't safe in github issues or the same questions being asked in the community support forum without any answers for months. Solid documentation is highly valuable. |
Thanks for the feedback @polarathene! I've relayed it to the team 💛 |
Hi @janiceilene, I've gone down the rabbit hole of trying to learn more about
Unfortunately, the fields that are accessible through So, I sympathize with the sentiments that @Morriz has expressed - and thought I would pass along my own experience of trying to learn. My next steps will probably be to start up some ad-hoc |
I've gone through a similar experience as @devinrsmith Presently I had a simpler pull_request event workflow for building and deploying documentation for a project, however became aware that non-collaborators contributions can't run the workflow for security reasons as the blog post explained. I have no issue with that but documentation / advice is rather scarce.
Another thing I've tried is creating an I understand the security issue with third-party pull requests, and I'm trying to resolve it safely. Friction from lack of official support and expending additional effort to understand risk in trusting third-party actions or code snippets, along with considering handing off scripts using github APIs for maintainers to review and accept becoming responsible for isn't great. Github Actions AFAIK is meant to help simplify this and increase the trust in automation. Going through the experience, I have to wonder why a fix of changing the environment/permissions scope within a single workflow isn't a considered option. For example, running untrusted builds in a sandbox? In my case the build is performed via a run step which uses docker and requires no secrets access. AFAIK there isn't any security problems there but the deployment step can't be run as I can't indicate that the workflow should be safe to allow secrets access. TL;DR: There's quite a bit of friction introduced by a lack of documentation, missing support in official actions (with some issues spanning 1-2 years), leaving many developers to flounder around to piece together a solution and potentially introducing more risks. |
This has been my experience as well.
I just found out about I don't think leaving things out of the docs is a good idea. |
In case of anyone is still wondering what are the properties of the workflow_run: {
artifacts_url: 'https://api.github.com/repos/...',
cancel_url: 'https://api.github.com/repos/...',
check_suite_id: 123456789,
check_suite_node_id: 'NODEIDACDEFGHUIADASD',
check_suite_url: 'https://api.github.com/repos/...',
conclusion: 'success',
created_at: '2021-06-07T18:44:28Z',
event: 'workflow_dispatch',
head_branch: 'main',
head_commit: [Object],
head_repository: [Object],
head_sha: 'SHAACBADSADAASDASD',
html_url: 'https://github.com/....',
id: 123456789,
jobs_url: 'https://api.github.com/repos/...',
logs_url: 'https://api.github.com/repos/...',
name: 'workflow-that-completed',
node_id: 'NODEIDACDEFGHUIADASD',
pull_requests: [],
repository: [Object],
rerun_url: 'https://api.github.com/repos/...',
run_number: 14,
status: 'completed',
updated_at: '2021-06-07T18:47:28Z',
url: 'https://api.github.com/repos/...',
workflow_id: 0987654321,
workflow_url: 'https://api.github.com/repos/...'
} I extracted it using this Action to print the context, hope is of any help :) |
Having it in the documentation will help prevent breaking changes. Currently, I'm very much concerned that someday my GHA would stop working for some reasons. |
Im raising this again: #23257 |
What article on docs.github.com is affected?
GitHub Actions / Reference
There seems to be no reference documentation for
workflow_run
(and many other items for that matter). This is very problematic as it leaves us struggling to find information in the guides, which are not complete in that regard.The text was updated successfully, but these errors were encountered: