Skip to content
etmdbPublic
forked from dchonch/actions

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

31 Commits

Folders and files

Repository files navigation

actions

Shared reusable GitHub Actions workflows. Update action versions here once — all calling repos pick up the change automatically.

Workflows

Workflow What it runs Inputs
security.yml gitleaks (secrets) + trivy (fs scan) trivyignore (bool)
lint-shell.yml shellcheck path (string)
lint-yaml.yml yamllint config (string)
lint-markdown.yml markdownlint-cli2 glob (string)
lint-awesome.yml awesome-lint —

Usage

Security scanning

jobs:
  security:
    uses: dchonch/actions/.github/workflows/security.yml@main
    permissions:
      contents: read
      pull-requests: read

With a .trivyignore file in the calling repo:

jobs:
  security:
    uses: dchonch/actions/.github/workflows/security.yml@main
    with:
      trivyignore: true
    permissions:
      contents: read
      pull-requests: read

Shell linting

jobs:
  lint-shell:
    uses: dchonch/actions/.github/workflows/lint-shell.yml@main
    with:
      path: scripts/        # optional, defaults to entire repo
    permissions:
      contents: read

YAML linting

jobs:
  lint-yaml:
    uses: dchonch/actions/.github/workflows/lint-yaml.yml@main
    with:
      config: .yamllint.yml # optional, defaults to "relaxed"
    permissions:
      contents: read

Markdown linting

jobs:
  lint-markdown:
    uses: dchonch/actions/.github/workflows/lint-markdown.yml@main
    with:
      glob: "docs/**/*.md"  # optional, defaults to **/*.md
    permissions:
      contents: read

Awesome list linting

jobs:
  lint-awesome:
    uses: dchonch/actions/.github/workflows/lint-awesome.yml@main
    permissions:
      contents: read

Updating action versions

Edit the pinned SHAs in .github/workflows/*.yml — all callers update on their next run.

Current pins:

  • actions/checkout — de0fac2e4500dabe0009e67214ff5f5447ce83dd (v6)
  • actions/setup-node — 49933ea5288caeca8642d1e84afbd3f7d6820020 (v4)
  • gitleaks/gitleaks-action — dcedce43c6f43de0b836d1fe38946645c9c638dc (v2)
  • aquasecurity/trivy-action — 57a97c7e7821a5776cebc9bb87c984fa69cba8f1 (v0.35.0)

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors