Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
action-docs
Advanced tools
A CLI to generate and update documentation for GitHub actions, based on the action definition .yml
. To update your README in a GitHub workflow you can use the action-docs-action.
<!-- action-docs-description action="action.yml" -->
<!-- action-docs-inputs action="action.yml" -->
<!-- action-docs-outputs action="action.yml" -->
<!-- action-docs-runs action="action.yml" -->
Optionally you can also add the following section to generate a usage guide, replacing <project> and <version> with the name and version of your project you would like to appear in your usage guide.
<!-- action-docs-usage action="action.yml" project="<project>" version="<version>" -->
npm install -g action-docs
cd <your github action>
# write docs to console
action-docs
# update reamde
action-docs --update-readme
action-docs -u
The following options are available via the CLI
Options:
--help Show help [boolean]
--version Show version number [boolean]
-t, --toc-level TOC level used for markdown [number] [default: 2]
-a, --action GitHub action file [string] [default: "action.yml"]
--no-banner Print no banner
-u, --update-readme Update readme file. [string]
-l, --line-breaks Used line breaks in the generated docs.
[string] [choices: "CR", "LF", "CRLF"] [default: "LF"]
Action-docs can update your README based on the action.yml
. The following sections can be updated: description, inputs, outputs and runs. Add the following tags to your README and run action-docs -u
.
<!-- action-docs-description action="action.yml" -->
<!-- action-docs-inputs action="action.yml" -->
<!-- action-docs-outputs action="action.yml" -->
<!-- action-docs-runs action="action.yml" -->
For updating other Markdown files add the name of the file to the command action-docs -u <file>
.
If you need to use another/action.yml
:
action="another/action.yml"
;-a
option like action-docs -a another/action.yml
action-docs
action-docs --update-readme
action-docs --action another/action.yaml
action-docs --action ./some-dir/action.yml --toc-level 3 --update-readme docs.md
import { generateActionMarkdownDocs } from 'action-docs'
await generateActionMarkdownDocs({
actionFile: 'action.yml'
tocLevel: 2
updateReadme: true
readmeFile: 'README.md'
});
We welcome contributions, please checkout the contribution guide.
This project is released under the MIT License.
FAQs
Generate GitHub action docs based on action.yml
The npm package action-docs receives a total of 566 weekly downloads. As such, action-docs popularity was classified as not popular.
We found that action-docs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.