Skip to content

About

Reusable GitHub Actions workflows for repository CI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Reusable GitHub Actions workflows

GitHub Actions lint

Run gh actions-lock --verify, pinact, jactionlint, ghalint, and zizmor on the caller's workflow files. The job requires contents: read and can run on pull requests without repository secrets.

gh actions-lock --verify fails when .github/workflows/actions.lock is missing or does not cover every workflow, including schedule and workflow_dispatch workflows that the pull request does not run. pinact then checks the refs the lockfile does not pin: reusable workflow calls and action definitions (action.yml) outside .github/actions/ need full commit SHAs. Actions under .github/actions/ run as $/ and the lockfile pins their refs. Callers without a lockfile can skip the lockfile check; pinact then requires a SHA pin on every ref:

    with:
      verify-actions-lock: false
name: GitHub Actions lint

on: pull_request

permissions: {}

jobs:
  gha-lint:
    permissions:
      contents: read
    uses: zunoser/reusable-workflows/.github/workflows/gha-lint.yml@RELEASE_COMMIT_SHA # v1.3.1

Replace RELEASE_COMMIT_SHA with a full commit SHA from the releases. Enable Dependabot's github-actions ecosystem in the caller to get PRs for new releases of the shared workflow.

The shared job uses the dependency lockfile in this repository. When changing its Action dependencies, run gh actions-lock and gh actions-lock --verify here. Manage workflow lockfiles in each caller according to the gha-lint skill.

About

Reusable GitHub Actions workflows for repository CI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors