Reusable workflows for developing actions
  • JavaScript 100%
Find a file
priya-kinthali 4735e71081
Migrate reusable configs to ESM and pin actions to commit SHAs in workflows (#31)
* Migrate configs to ESM

* fix copilot suggestion

* fix ignore files

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* fixed punctuation

* Refactor ESLint configuration for improved clarity and structure

* Disable 'no-useless-assignment' rule in ESLint configuration

* Disable 'no-unassigned-vars' rule in ESLint configuration

* Disable 'no-unassigned-vars' rule in ESLint configuration

* update actions/checkout, actions/setup-node and ithub/codeql-action/init versions in workflow files

* Add cooldown configuration to Dependabot for GitHub Actions updates

* updated with latest commits

* Disable 'no-undef' rule in ESLint configuration

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-08 16:38:34 -05:00
.github Migrate reusable configs to ESM and pin actions to commit SHAs in workflows (#31) 2026-07-08 16:38:34 -05:00
reusable-configurations Migrate reusable configs to ESM and pin actions to commit SHAs in workflows (#31) 2026-07-08 16:38:34 -05:00
CODE_OF_CONDUCT.md Initial commit 2022-11-10 13:13:02 -05:00
CODEOWNERS Update CODEOWNERS 2023-12-19 10:37:53 -06:00
CONTRIBUTING.md Prepare the repo to become public (#2) 2022-12-12 16:38:19 -05:00
LICENSE.txt Initial commit 2022-11-10 13:13:02 -05:00
README.md Add permission section (#15) 2025-01-16 08:46:27 -06:00
SECURITY.md Prepare the repo to become public (#2) 2022-12-12 16:38:19 -05:00
SUPPORT.md Prepare the repo to become public (#2) 2022-12-12 16:38:19 -05:00

Reusable Workflows for Developing Actions

This repository contains reusable workflows that are useful for developing actions.

Background

These workflows are used for the development lifecycles of the GitHub-provided actions in the github/actions org. We also provide them here to use in actions that you create!

Available workflows

This workflow compiles and tests the code in the repo. It also checks that it passes linting and formatting rules. Optionally, it can run npm audit on the packages in the repo.

Usage

basic-validation-call:
  uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main

This workflow ensures that the generated contents of the dist directory match what they are expected to be. For actions that follow our TypeScript or JavaScript templates, dist contains the packaged script that is executed by the runner. Whenever you update the source code, the dist files must be regenerated for the changes to take effect.

Usage

check-dist-call:
  uses: actions/reusable-workflows/.github/workflows/check-dist.yml@main

This workflow uses GitHub's code scanning feature to analyze a repository for vulnerabilities, bugs, and other errors. This workflow uses github/codeql-action to run code scanning.

Usage

codeql-analysis-call:
  uses: actions/reusable-workflows/.github/workflows/codeql-analysis.yml@main

This workflow helps to check the statuses of cached dependencies used in action with the help of the Licensed tool.

Usage

licensed-call:
  uses: actions/reusable-workflows/.github/workflows/licensed.yml@main

This workflow helps to keep configuration files for such tools as ESLint and Prettier up to date with the reference configuration files from the actions/reusable-workflows repository. Once the reference configuration files are changed in the reference folder, the workflow will automatically create PR with updates in the repo where it's launched.

Usage

update-config-files-call:
  uses: actions/reusable-workflows/.github/workflows/update-config-files.yml@main

Adjusting reusable workflows

If the default behaviour of a reusable workflow isn't what you need, you can adjust it using the workflow's inputs. Check the available inputs of reusable workflows in the corresponding YAML file in .github/workflows/<reusable-workflow-name>.yml.

Example of disabling auditing of NPM packages in the basic-validation workflow:

basic-validation-call:
  uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main
  with:
    enable-audit: false

When using the reusable-workflows in your GitHub Actions workflow, it is recommended to set the following permissions to ensure proper functionality:

permissions:
  contents: read # access to read repository's content
  actions: read # access to reading actions 

License

The scripts and documentation in this project are released under the MIT License

Contributing

Contributions are welcome! See Contributor's Guide

Maintainers

See CODEOWNERS.

Support

See SUPPORT.md.