Compare commits

...

7 Commits

Author SHA1 Message Date
fef32ab12b docs: update action listing (#154) 2025-06-05 12:21:31 +03:00
renovate[bot]
261011b054 fix(github-action): update raven-actions/actionlint (v2.0.0 → v2.0.1) (#152)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-03 19:48:05 +00:00
c2328922ab chore(ci): use .mega-linter.yml in pr-lint.yml (#151) 2025-06-03 15:42:42 +03:00
renovate[bot]
607d30ad0c fix(github-action): update ossf/scorecard-action (v2.4.1 → v2.4.2) (#149)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-02 07:42:09 +00:00
renovate[bot]
d6d99b627e fix(github-action): update ivuorinen/actions (25.5.12 → 25.5.26) (#148)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-02 02:55:25 +00:00
baed29f713 chore(ci): allow .github/workflows in .mega-linter.yml (#146) 2025-05-26 13:36:14 +03:00
renovate[bot]
598fe0190a fix(github-action): update actions/dependency-review-action (v4.7.0 → v4.7.1) (#138)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-26 10:28:41 +00:00
7 changed files with 42 additions and 38 deletions

View File

@@ -58,7 +58,7 @@ jobs:
fi
- name: Run actionlint
uses: raven-actions/actionlint@01fce4f43a270a612932cb1c64d40505a029f821 # v2.0.0
uses: raven-actions/actionlint@3a24062651993d40fed1019b58ac6fbdfbf276cc # v2.0.1
with:
cache: true
fail-on-error: true

View File

@@ -13,4 +13,4 @@ jobs:
- name: 'Checkout Repository'
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: 'Dependency Review'
uses: actions/dependency-review-action@38ecb5b593bf0eb19e335c03f97670f792489a8b # v4.7.0
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4.7.1

View File

@@ -70,20 +70,6 @@ jobs:
- name: MegaLinter
id: ml
uses: oxsecurity/megalinter/flavors/cupcake@5a91fb06c83d0e69fbd23756d47438aa723b4a5a # v8.7.0
env:
PARALLEL: true # Run linters in parallel
FILTER_REGEX_EXCLUDE: '(\.automation/test|docs/json-schemas|\.github/workflows)'
# Error configuration
ERROR_ON_MISSING_EXEC_BIT: true
CLEAR_REPORT_FOLDER: true
PRINT_ALPACA: false
SHOW_ELAPSED_TIME: true
# File configuration
YAML_YAMLLINT_CONFIG_FILE: .yamllint.yml
YAML_PRETTIER_CONFIG_FILE: .prettierrc.yml
YAML_YAMLLINT_FILTER_REGEX_EXCLUDE: '(\.automation/test|docs/json-schemas|\.github/workflows)'
- name: Check MegaLinter Results
id: check-results

View File

@@ -140,7 +140,7 @@ jobs:
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run Scorecard
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
with:
results_file: scorecard-results.sarif
results_format: sarif

View File

@@ -32,4 +32,4 @@ JAVASCRIPT_ES_CONFIG_FILE: .eslintrc.json
TYPESCRIPT_ES_CONFIG_FILE: .eslintrc.json
FILTER_REGEX_EXCLUDE: >
(node_modules|\.automation/test|docs/json-schemas|\.github/workflows)
(node_modules|\.automation/test|docs/json-schemas)

View File

@@ -2,14 +2,20 @@
## Overview
This project contains a collection of workflows and composable actions to streamline CI/CD
processes and ensure code quality. Below is a categorized list of all workflows, grouped by their types.
This project contains a collection of workflows and composable actions to streamline CI/CD processes and ensure code quality. The actions are grouped by purpose for easier discovery.
## Testing Workflows
## Setup & Caching
- [PHP Tests][php-tests]: Runs PHPUnit tests to ensure PHP code correctness.
- [Node Setup][node-setup]: Sets up Node.js with caching and tooling.
- [PHP Composer][php-composer]: Installs PHP dependencies using Composer.
- [Dotnet Version Detect][dotnet-v-detect]: Detects the required .NET version from `global.json`.
- [Go Version Detect][go-version-detect]: Detects the required Go version from configuration files.
- [Common Cache][common-cache]: Provides a consistent caching strategy for multiple languages.
- [Set Git Config][set-git-config]: Configures Git user information for automated commits.
## Linting and Formatting Workflows
## Linting & Formatting
### Code Linting
- [Ansible Lint and Fix][ansible-lint-fix]: Lints and fixes Ansible playbooks and roles.
- [Biome Check][biome-check]: Runs Biome to lint multiple languages and formats.
@@ -18,40 +24,46 @@ processes and ensure code quality. Below is a categorized list of all workflows,
- [ESLint Check][eslint-check]: Runs ESLint to check for code style violations.
- [ESLint Fix][eslint-fix]: Automatically fixes code style issues with ESLint.
- [Go Lint Check][go-lint]: Lints Go code using `golangci-lint`.
- [PR Lint][pr-lint]: Runs MegaLinter against pull requests.
- [Python Lint and Fix][python-lint-fix]: Lints and fixes Python code using `flake8` and `black`.
- [Terraform Lint and Fix][terraform-lint-fix]: Lints and fixes Terraform configurations.
### Code Formatting
- [Prettier Check][prettier-check]: Checks code formatting using Prettier.
- [Prettier Fix][prettier-fix]: Automatically fixes code formatting with Prettier.
- [Python Lint and Fix][python-lint-fix]: Lints and fixes Python code using `flake8` and `black`.
- [Terraform Lint and Fix][terraform-lint-fix]: Lints and fixes Terraform
configurations.
- [Pre-Commit][pre-commit]: Runs `pre-commit` hooks to enforce code quality standards.
## Build Workflows
## Testing
- [PHP Tests][php-tests]: Runs PHPUnit tests to ensure PHP code correctness.
- [Laravel PHPUnit][php-laravel-phpunit]: Sets up Laravel and runs Composer tests.
## Build & Package
- [C# Build][csharp-build]: Builds C# projects using the .NET SDK.
- [Docker Build][docker-build]: Builds Docker images using a Dockerfile.
- [Go Build][go-build]: Builds Go projects using the `go build` command.
- [Docker Build][docker-build]: Builds Docker images using a Dockerfile.
## Deployment Workflows
## Publish & Deployment
- [C# Publish][csharp-publish]: Publishes .NET projects to an output directory.
- [Docker Publish][docker-publish]: Publishes Docker images to GitHub Packages and Docker Hub.
- [Docker Publish to Docker Hub][docker-publish-hub]: Publishes Docker images to Docker Hub.
- [Docker Publish to GitHub Packages][docker-publish-gh]: Publishes Docker images to GitHub's Container Registry.
- [Publish to NPM][npm-publish]: Publishes packages to the NPM registry.
## Release Workflows
## Release Management
- [GitHub Release][github-release]: Automates GitHub release creation with custom tags and notes.
- [Release Monthly][release-monthly]: Creates a monthly GitHub release with autogenerated notes.
## Utility Workflows
## Repository Maintenance
- [Common File Check][common-file-check]: Checks for the presence of specific files based on a glob pattern.
- [Compress Images][compress-images]: Optimizes and creates a pull request with compressed images.
- [Dotnet Version Detect][dotnet-v-detect]: Detects the required .NET version from `global.json`.
- [Go Version Detect][go-version-detect]: Detects the required Go version from configuration files.
- [Node Setup][node-setup]: Sets up a Node.js environment for workflows.
- [PHP Composer][php-composer]: Installs PHP dependencies using Composer.
- [Pre-Commit][pre-commit]: Runs `pre-commit` hooks to enforce code quality standards.
- [Set Git Config][set-git-config]: Configures Git user information for automated commits.
- [Stale][stale]: Closes stale issues and pull requests automatically.
- [Sync Labels][sync-labels]: Syncs repository labels from a YAML file.
## License
@@ -60,12 +72,14 @@ This project is licensed under the MIT License. See the [LICENSE](LICENSE.md) fi
[ansible-lint-fix]: ansible-lint-fix/README.md
[biome-check]: biome-check/README.md
[biome-fix]: biome-fix/README.md
[common-cache]: common-cache/README.md
[common-file-check]: common-file-check/README.md
[compress-images]: compress-images/README.md
[csharp-build]: csharp-build/README.md
[csharp-lint-check]: csharp-lint-check/README.md
[csharp-publish]: csharp-publish/README.md
[docker-build]: docker-build/README.md
[docker-publish]: docker-publish/README.md
[docker-publish-gh]: docker-publish-gh/README.md
[docker-publish-hub]: docker-publish-hub/README.md
[dotnet-v-detect]: dotnet-version-detect/README.md
@@ -78,11 +92,15 @@ This project is licensed under the MIT License. See the [LICENSE](LICENSE.md) fi
[node-setup]: node-setup/README.md
[npm-publish]: npm-publish/README.md
[php-composer]: php-composer/README.md
[php-laravel-phpunit]: php-laravel-phpunit/README.md
[php-tests]: php-tests/README.md
[pr-lint]: pr-lint/README.md
[pre-commit]: pre-commit/README.md
[prettier-check]: prettier-check/README.md
[prettier-fix]: prettier-fix/README.md
[python-lint-fix]: python-lint-fix/README.md
[release-monthly]: release-monthly/README.md
[set-git-config]: set-git-config/README.md
[stale]: stale/README.md
[sync-labels]: sync-labels/README.md
[terraform-lint-fix]: terraform-lint-fix/README.md

View File

@@ -29,7 +29,7 @@ runs:
# ╰──────────────────────────────────────────────────────────╯
- name: Setup Git Config
id: git-config
uses: ivuorinen/actions/set-git-config@140177528bc0a5a27fcf20a2bf19f6c9390d001c # 25.5.12
uses: ivuorinen/actions/set-git-config@baed29f713eaa0817982be42681e66511cb092b5 # 25.5.26
# ╭──────────────────────────────────────────────────────────╮
# │ Install packages for linting │