Skip to content

Commit 892e43b

Browse files
New quality check workflows (#30)
Signed-off-by: Jorge Sánchez <[email protected]> Signed-off-by: Álex Ruiz <[email protected]> Co-authored-by: Álex Ruiz <[email protected]>
1 parent 091b8af commit 892e43b

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Changelog Verifier"
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
5+
6+
jobs:
7+
# Enforces the update of a changelog file on every pull request
8+
verify-changelog:
9+
if: github.repository == 'wazuh/wazuh-indexer-reporting'
10+
runs-on: ubuntu-24.04
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
ref: ${{ github.event.pull_request.head.sha }}
16+
- uses: dangoslen/changelog-enforcer@v3
17+
id: verify-changelog
18+
with:
19+
skipLabels: "autocut, skip-changelog"
20+
changeLogPath: "CHANGELOG.md"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "Email Checker"
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
5+
6+
jobs:
7+
# Checks if the email domain is @wazuh.com, if not the workflow will fail
8+
verify-email:
9+
if: github.repository == 'wazuh/wazuh-indexer-reporting'
10+
runs-on: ubuntu-24.04
11+
steps:
12+
- uses: semcelik/[email protected]
13+
with:
14+
email_domain: 'wazuh.com'
15+
github_token: ${{ secrets.GITHUB_TOKEN }}
16+
error_on_fail: 'true'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "Signed commits checker"
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
5+
6+
jobs:
7+
# Checks if the commits are signed, if not the workflow will fail
8+
verify-signed-commits:
9+
if: github.repository == 'wazuh/wazuh-indexer-reporting'
10+
runs-on: ubuntu-24.04
11+
permissions:
12+
contents: read
13+
steps:
14+
- uses: 1Password/check-signed-commits-action@v1

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# CHANGELOG
2+
All notable changes to this project are documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). See the [CONTRIBUTING guide](./CONTRIBUTING.md#Changelog) for instructions on how to add changelog entries.
5+
6+
## [Unreleased 5.0.x]
7+
### Added
8+
- New quality check workflows [(#30)](https://github.com/wazuh/wazuh-indexer-reporting/pull/30)
9+
### Dependencies
10+
11+
### Changed
12+
13+
### Deprecated
14+
15+
### Removed
16+
17+
### Fixed
18+
19+
### Security
20+
21+
[Unreleased 5.0.x]: https://github.com/wazuh/wazuh-indexer/compare/main...main

0 commit comments

Comments
 (0)