Shared actions available to both public and private repositories
- uses: Kong/public-shared-actions/<action-name>@<tag>
For example:
- uses: Kong/public-shared-actions/code-build-actions/build-js-sdk@a18abf762d6e2444bcbfd20de70451ea1e3bc1b1 # v4.0.1
The public-shared-actions
(PSA) repository is a monorepo that hosts multiple GitHub Shared Actions, each with its own release. Updating PSA references in downstream workflows is a manual and often delayed process, leading to inconsistencies and slow adoption of changes. Since each shared action can have its own GitHub release, managing dependencies at the action level is essential. To address this, centralized dependency management needs to be introduced to automate across repositories by raising pull requests whenever a shared action is released, solving both timeliness and consistency challenges at scale.
To ensure downstream workflows can get timely automated updates on releases of public shared actions, Renovate can be leveraged.
The Public Shared Renovate config provides a centralized and reusable Renovate configuration tailored for managing release updates of Kong/public-shared-actions
. The shared renovate config for PSA can detect and updates action references in GitHub workflow files, supporting both versioned tags (e.g., @v2.8.0
) and pinned digests (e.g., @sha256:... # v2.8.0
).
Usage
- Latest Version of the Shared Config
To use the latest version of the shared config fromKong/public-shared-renovate
, add the following to the top of yourrenovate.json
orrenovate-config.json
file:
{
"extends": [
"github>Kong/public-shared-renovate:github-actions"
]
}
- Specific Release Version To pin Renovate to a specific version of the shared config (e.g., 1.6.0), use:
{
"extends": [
"github>Kong/public-shared-renovate:github-actions#1.6.0"
]
}
This guide will help you install and configure Lefthook to enforce commit message standards locally.
Lefthook is already listed within dev dependencies in the package.json file. Run pnpm install
to install all the dependencies.
Refer to the official Lefthook installation guide for platform-specific instructions.
This repo should already contain a lefthook.yml
configuration file in the root directory.
The lefthook hooks are synced as part of pnpm install
command using a postinstall
hook that runs the below command automatically
lefthook install
To verify that Lefthook is correctly set up:
-
Stage a file for commit:
git add .
-
Attempt to commit with an invalid message:
git commit -m "Test commitlint"
You should see errors like:
- ✖ subject may not be empty
- ✖ type may not be empty
- ✖ scope may not be empty
-
Test with a valid commit message:
git commit -m "feat(ci): test commitlint for scope"
This should pass without any issues.
- Ensure that all developers in your team follow this setup to maintain consistent commit message standards.
- Refer to the Lefthook Usage Guide for more advanced configurations and usage scenarios.
By setting up Lefthook, you ensure that all developers adhere to the commit message conventions..
This guide will help you install and configure zizmor to analyze GH workflows and Actions locally.
Installed as dependency during pnpm install
along with all the other dependencies.