-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add check-spelling #4017
Add check-spelling #4017
Conversation
To check this feature, the simplest thing to do is pull this branch into your local repository, create a new branch from it and add a commit with a typo to that branch and push it to your repository, github will automatically run the workflow and report. To check how it handles PRs, you can create a PR into your branch that has this code from your branch with the typo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your assistance, @jsoref! I'm sorry for not getting back to you sooner.
I wanted to check with you on this particular step:
- name: apply spelling updates
uses: check-spelling/[email protected]
with:
experimental_apply_changes_via_bot: 1
checkout: true
ssh_key: "${{ secrets.CHECK_SPELLING }}"
Specifically, could you elaborate on the ssh_key: "${{ secrets.CHECK_SPELLING }}"
argument? What value is it expected to hold and is it mandatory for this operation?
Thanks for asking, -- I've updated my public documentation to try to make it easier for people to understand how this works (sadly the mapping between GitHub Wiki markup and normal Markdown is a mess, so the anchors from the top of the Configuration page won't work....) https://docs.check-spelling.dev/Configuration.html#sshkey For this repository, the value of nuclei/.github/workflows/spelling.yml Line 148 in 6e566d8
will be ignored: nuclei/.github/workflows/spelling.yml Line 134 in 6e566d8
The nuclei/.github/workflows/spelling.yml Line 129 in 6e566d8
The general design behind this feature is to make it easier for people using check-spelling to update the metadata when they believe the terms they're adding are temporarily correct (mostly adding items to |
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
Signed-off-by: Josh Soref <[email protected]>
6e566d8
to
7c12d7d
Compare
@ehsandeep: don't worry about slow responses. I get it. Fwiw, this fall I released v0.0.22.
|
Oh, I should note that w/ v0.0.22, there's a pre-generated commit that people can use which I'm hoping will be easy enough to apply the basic suggestions w/o having to worry about running a third party program locally (finding a nice middle-ground for updating metadata has been a hard problem...). You can see an example of it in https://github.com/check-spelling-sandbox/nuclei/actions/runs/7294645877#summary-19879855114 under It's a fairly new feature, so I'm definitely seeking feedback from people who use it, consider/reject using it, etc. |
@jsoref thank you for the assistance and support, we will reconsider this in future once we get more familiar with workflow. |
Proposed changes
In #4008 (comment), @ehsandeep suggested adding the check-spelling workflow.
This is the workflow, roughly as I used it to develop the PR, but with a couple of changes.
As configured check-spelling will produce a job summary reachable via Details.
When possible, it will generate a Sarif report, and if a user is an admin (or nearly an admin) they'll be able to view it in GitHub, otherwise, users can download a generated artifact and process w/ their own tools (especially VSCode).
I've configured it to provide a fallback message (using
spell_check_this: projectdiscovery/nuclei@dev
) (ideally this shouldn't be necessary, but I think I have a bug I need to resolve which I haven't had time to focus on) -- note that this assumes it'll be merged to main before most people notice the workflow.The
advice.md
file is a markdown file that the project can customize based on the needs of its maintainers/contributors. TheREADME.md
is designed to be helpful documentation, but is absolutely optional.You'll want to review
expect.txt
at least once, and potentially periodically (depending on how good people are at paying attention to the tool -- at work people sometimes just accept its suggestions even when it's pointing out obvious typos 🤷♂️).It's using the latest released tag (v0.0.22). Some projects are release-early / release-often -- check-spelling isn't. I don't tend to make a lot of releases although my coworkers are dogfooding prerelease in a dozen repositories (and I'm constantly dogfooding it to make contributions such as the one that was merged here). If you start using GitHub workflows, you'll want to set up dependabot to make PRs for updates to things.
I'm happy to answer questions here / in Discord, and if this is merged, I'll probably watch the repository for a bit to make sure people don't have any problems.
Checklist