Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/automatic-pr-labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---

# The workflow template for automatic PR labeler.
# It requires to have a configuration file with labels and conditions to apply them.
# The configuration file should be placed in the .github folder and named auto-labeler-config.yaml.
# Example file can be found there:
# https://github.com/Netcracker/qubership-workflow-hub/blob/main/docs/examples/auto-labeler-config.yaml

name: Automatic PR Labeler

on:
pull_request_target:
branches: [main]
types:
[opened, reopened, synchronize]

jobs:
assign-labels:
uses: Netcracker/qubership-workflow-hub/.github/workflows/auto-labeler.yaml@main
name: Assign labels in pull request
if: github.event.pull_request.merged == false
with:
pull_request_number: ${{ github.event.pull_request.number }}
config_file: './.github/auto-labeler-config.yaml'
36 changes: 36 additions & 0 deletions .github/workflows/cdxgen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---

# The workflow will generate the SBOM file for the repository
# and vulerability scan report for the SBOM file using CycloneDX
# The workflow will run on push to main branch and manually triggered workflows
# The results will be stored in the action artifacts

name: 'CDXGen'
on:
workflow_dispatch:
push:
branches:
- 'main'

jobs:
cdxgen:
runs-on: ubuntu-latest
steps:
- name: "cdxgen"
uses: netcracker/qubership-workflow-hub/actions/cdxgen@main
deploy-pages:
permissions:
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: cdxgen
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: "Summary"
run: |
echo "${{ steps.deployment.outputs.page_url }}cyclondx-report" >> $GITHUB_STEP_SUMMARY
19 changes: 19 additions & 0 deletions .github/workflows/cla.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: CLA Assistant
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]

permissions:
actions: write
contents: read
pull-requests: write
statuses: write

jobs:
cla_assistant:
uses: Netcracker/qubership-workflow-hub/.github/workflows/cla.yaml@main
secrets:
personal_access_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
17 changes: 17 additions & 0 deletions .github/workflows/pr-collect-commit-messages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---

name: "Add commit messages to PR body"

on:
pull_request:
types: [opened, synchronize]

permissions:
pull-requests: write

jobs:
update-pr-body:
runs-on: ubuntu-latest
steps:
- name: "Update PR body"
uses: netcracker/qubership-workflow-hub/actions/pr-add-messages@main
21 changes: 21 additions & 0 deletions .github/workflows/pr-conventional-commits.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---

name: Conventional Commits PR Check

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
pull-requests: read
jobs:
build:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: webiny/action-conventional-commits@v1.3.0
21 changes: 21 additions & 0 deletions .github/workflows/pr-lint-title.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---

name: "Lint PR Title"

on:
pull_request_target:
types:
- opened
- edited

permissions:
pull-requests: read

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ github.token }}
18 changes: 18 additions & 0 deletions .github/workflows/profanity-filter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Profanity filter

on:
issue_comment:
types: [created, edited]
issues:
types: [opened, edited, reopened]
pull_request_target:
types: [opened, edited, reopened]

permissions:
issues: write
pull-requests: write

jobs:
call-apply-filter:
uses: Netcracker/qubership-workflow-hub/.github/workflows/profanityFilter.yaml@main