Skip to content

bcgov/actions

Repository files navigation

bcgov/actions

Issues Pull Requests Apache-2.0 License Lifecycle

A centralized repository for custom GitHub Actions and workflows provided to the bcgov organization. These are often consumed as part of the QuickStart for OpenShift.

Lint GitHub Actions workflow files with caching and rate-limit proof execution.

- name: Lint Workflows
  uses: bcgov/actions/actionlint@vX.Y.Z # Replace with latest release tag

Generic GHCR container builder with automatic tag management.

- name: Build Container
  uses: bcgov/actions/builder-ghcr@vX.Y.Z # Replace with latest release tag

Checks git diff for file and path changes to conditionally trigger workflow jobs.

- name: Check Triggers
  uses: bcgov/actions/diff-triggers@vX.Y.Z # Replace with latest release tag

Resolve the Pull Request number for merge queues, squash merges, pushes, and releases.

- name: Get PR Number
  uses: bcgov/actions/get-pr@vX.Y.Z # Replace with latest release tag

Forensic history traversal to resolve stable image SHAs from Tags or SHAs.

- name: Track Images
  uses: bcgov/actions/image-tracker@vX.Y.Z # Replace with latest release tag

Add markdown content to Pull Request descriptions dynamically.

- name: Update PR Description
  uses: bcgov/actions/pr-description-add@vX.Y.Z # Replace with latest release tag

Universal Test and Analyze with Triggers, SonarCloud, and Multi-Language Support. Supports the following runtimes:

  • Node.js: Testing, dependency analysis with Knip, and safe-chain supply scanning (default).
  • Java: Maven/Gradle tests and SonarCloud analysis (using input language: java).
  • Python: Pytest runs and JUnit XML parsing (using input language: python).
- name: Test and Analyze
  uses: bcgov/actions/test-and-analyse@vX.Y.Z # Replace with latest release tag

test-and-analyse-java (Consolidated)

Deprecated: This Java-specific utility has been consolidated into test-and-analyse. Please migrate to test-and-analyse with language: java specified.

Find CODEOWNERS and coordinate notifications (GitHub Issues) on job failures.

- name: Notify Failures
  uses: bcgov/actions/workflow-notifier@vX.Y.Z # Replace with latest release tag

Releases and Version Pinning

Never reference these actions with @main. Always pin to a release tag (e.g. @v1.2.3) or, better yet, a full commit SHA.

Usage examples in this repo intentionally use a placeholder that will not resolve (@vX.Y.Z). Copy-paste should fail until you look up the latest release and pick a real version.

All actions in this repository are versioned and released together as a single suite.

About

Consolidated repo for bcgov-specific actions. Please feel free to contribute!

Resources

License

Stars

0 stars

Watchers

2 watching

Forks

Packages

 
 
 

Contributors