
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
action-docs
Advanced tools
A CLI to generate and update documentation for GitHub actions or workflows, based on the definition .yml
. To update your README in a GitHub workflow you can use the action-docs-action.
<!-- action-docs-header source="action.yml" -->
<!-- action-docs-description source="action.yml" --> # applicable for actions only
<!-- action-docs-inputs source="action.yml" -->
<!-- action-docs-outputs source="action.yml" -->
<!-- action-docs-runs source="action.yml" --> # applicable for actions only
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 source="action.yml" project="<project>" version="<version>" -->
npm install -g action-docs
cd <your github action>
# write docs to console
action-docs
# update README
action-docs --update-readme
action-docs -u
The following options are available via the CLI
Options:
--version Show version number [boolean]
-t, --toc-level TOC level used for markdown [number] [default: 2]
-a, --action GitHub action file
[deprecated: use "source" instead] [string] [default: "action.yml"]
-s, --source GitHub source 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"]
-n, --include-name-header Include a header with the action/workflow name
[boolean]
--help Show help [boolean]
Action-docs can update your README based on the action.yml
. The following sections can be updated: name header, description, inputs, outputs, usage, and runs. Add the following tags to your README and run action-docs -u
.
<!-- action-docs-header source="action.yml" -->
<!-- action-docs-description source="action.yml" -->
<!-- action-docs-inputs source="action.yml" -->
<!-- action-docs-outputs source="action.yml" -->
<!-- action-docs-runs action="action.yml" -->
<!-- action-docs-usage action="action.yml" project="<project>" version="<version>" -->
Or to include all of the above, use:
<!-- action-docs-all source="action.yml" project="<project>" version="<version>" -->
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
:
source="another/action.yml"
;-s
option like action-docs -s another/action.yml
action-docs
action-docs --update-readme
action-docs --source another/action.yaml
action-docs --source ./some-dir/action.yml --toc-level 3 --update-readme docs.md
import { generateActionMarkdownDocs } from 'action-docs'
await generateActionMarkdownDocs({
sourceFile: '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 1,473 weekly downloads. As such, action-docs popularity was classified as 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 Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.