implementation of all generic github workflows for team polarion | Read-only mirror of https://github.com/SchweizerischeBundesbahnen/github-workflows-polarion — SBB. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-04 03:21:40 +00:00
.claude/rules docs: correct the CodeQL untrusted-checkout note and move it into a path-scoped rule (#128) 2026-11-09 20:19:26 +01:00
.github chore(deps): update dependency @redocly/cli to v2.86.0 2026-12-04 03:21:40 +00:00
docs fix(claude-review): stop a completed review failing the check on turn count (#121) 2026-09-25 18:02:18 +02:00
polarion-semgrep-rules chore(deps): update dependency semgrep to v1.187.0 2026-11-28 05:06:04 +00:00
.gitignore Initial commit 2026-03-13 09:42:44 +01:00
.pre-commit-config.yaml chore(deps): update python commit-gate tooling to v4.20.1 2026-11-27 11:42:26 +00:00
.sonarcloud.properties ci: analyse the workflows in SonarCloud, track the inline tool pins, drop the inert python-version input (#112) 2026-09-17 07:59:21 +02:00
CHANGELOG.md Initial commit 2026-03-13 09:42:44 +01:00
CLAUDE.md docs: correct the CodeQL untrusted-checkout note and move it into a path-scoped rule (#128) 2026-11-09 20:19:26 +01:00
CODE_OF_CONDUCT.md chore: replace template tokens and customize repository files (#17) 2026-03-15 17:22:47 +01:00
CODING_STANDARDS.md Initial commit 2026-03-13 09:42:44 +01:00
CONTRIBUTING.md chore: replace template tokens and customize repository files (#17) 2026-03-15 17:22:47 +01:00
DCO chore: customize open-source template for github-workflows-polarion (#7) 2026-03-13 14:50:05 +01:00
LICENSE chore: customize open-source template for github-workflows-polarion (#7) 2026-03-13 14:50:05 +01:00
NOTICE chore: customize open-source template for github-workflows-polarion (#7) 2026-03-13 14:50:05 +01:00
pom.xml feat: add reusable release-please-guard workflow (#74) 2026-04-14 14:16:43 +02:00
README.md ci: add a CodeQL reusable workflow for JavaScript (#113) 2026-09-22 21:04:24 +02:00
RELEASE.md Initial commit 2026-03-13 09:42:44 +01:00
renovate.json chore(renovate): let the actionlint gate group automerge 2026-09-24 20:40:22 +02:00
SUPPORT.md Initial commit 2026-03-13 09:42:44 +01:00
zizmor.yml feat: add reusable-claude.yml for @claude mention workflow (#63) 2026-04-08 12:07:10 +02:00

github-workflows-polarion

License

Reusable GitHub Actions workflows for the SBB Polarion team.

This repository contains GitHub Actions workflows (reusable and caller/CI) and the Polarion Semgrep rule pack that one of them runs. It does not contain application code or libraries. Other repositories in the organization call the reusable workflows via workflow_call.

Overview

  • Status: Active
  • Primary maintainers: @SchweizerischeBundesbahnen/SBB-CLEW-POLARION-ADMINS
  • Support channel: GitHub Issues
  • License: Apache-2.0

Available Workflows

Workflow Description
reusable-actionlint.yml GitHub Actions workflow validation using actionlint
reusable-claude.yml On-demand Claude Code assistant triggered by @claude mentions in issues, PRs, and reviews
reusable-claude-code-review.yml AI-powered code review using Claude Code
reusable-add-issue-to-project.yml Automatically add new issues to a GitHub project board
reusable-pr.yml PR checks with conventional commit validation
reusable-openapi-validation.yml OpenAPI spec validation using Redocly CLI
reusable-release-please.yml Automated releases and changelogs using release-please (Maven, Python, Docker, etc.)
reusable-release-please-guard.yml Blocks PR merges when the base branch pom.xml version is not a SNAPSHOT (prevents post-release drift)
reusable-codeql-java.yml CodeQL analysis for Java repositories, using build-mode: manual
reusable-codeql-javascript.yml CodeQL analysis for JavaScript/TypeScript and GitHub Actions workflows, using build-mode: none
reusable-polarion-semgrep.yml Polarion-specific Semgrep rules, uploaded to Code Scanning (rule pack)

Usage

Call a reusable workflow from your repository:

jobs:
  claude-review:
    uses: SchweizerischeBundesbahnen/github-workflows-polarion/.github/workflows/reusable-claude-code-review.yml@main
    secrets:
      CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
# @claude mention handler — triggered from issues, PR comments, and reviews
on:
  issue_comment:
    types: [created]
  pull_request_review_comment:
    types: [created]
  issues:
    types: [opened, assigned]
  pull_request_review:
    types: [submitted]
permissions: {}
jobs:
  claude:
    uses: SchweizerischeBundesbahnen/github-workflows-polarion/.github/workflows/reusable-claude.yml@main
    permissions:
      contents: read
      pull-requests: read
      issues: read
      id-token: write
      actions: read
    secrets:
      CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
jobs:
  add-to-project:
    uses: SchweizerischeBundesbahnen/github-workflows-polarion/.github/workflows/reusable-add-issue-to-project.yml@main
    secrets:
      POLARION_GITHUB_APP_ID: ${{ secrets.POLARION_GITHUB_APP_ID }}
      POLARION_GITHUB_APP_PRIVATE_KEY: ${{ secrets.POLARION_GITHUB_APP_PRIVATE_KEY }}
    with:
      project-number: ${{ vars.POLARION_GITHUB_PROJECT_NUMBER }}
# Maven project
jobs:
  release-please:
    uses: SchweizerischeBundesbahnen/github-workflows-polarion/.github/workflows/reusable-release-please.yml@main
    permissions:
      contents: write
      pull-requests: write
    with:
      release-type: maven
# Python project
jobs:
  release-please:
    uses: SchweizerischeBundesbahnen/github-workflows-polarion/.github/workflows/reusable-release-please.yml@main
    permissions:
      contents: write
      pull-requests: write
    with:
      release-type: python
      include-v-in-tag: false
# Docker / simple project
jobs:
  release-please:
    uses: SchweizerischeBundesbahnen/github-workflows-polarion/.github/workflows/reusable-release-please.yml@main
    permissions:
      contents: write
      pull-requests: write
    with:
      release-type: simple
      include-v-in-tag: false
# CodeQL — one caller workflow, one job per analysed language. A repository with
# both Java and a JavaScript UI needs both jobs: each reusable workflow covers
# only the languages named in its file, and a language nobody analyses is simply
# never scanned.
#
# Disable CodeQL default setup in the repository before adding this workflow.
# The two cannot coexist: while default setup is enabled every advanced analysis
# is rejected at upload with "CodeQL analyses from advanced configurations
# cannot be processed when the default setup is enabled", after the scan has
# already run. Conversely, enabling advanced setup disables default setup, and
# any language the advanced workflow does not name then stops being scanned
# without further notice — which is the gap these two workflows together close.
#
# Update branch protection in the same change. The analysis category survives
# the switch, the check RUN NAMES do not: default setup reports `Analyze
# (<lang>)`, while a called workflow reports `<caller-job-id> / Analyze
# (<lang>)` — so the jobs below report `analyze / Analyze (java-kotlin)` and
# `analyze-javascript / Analyze (javascript-typescript)`. A required status
# check naming the default-setup form is never reported again, and an
# unreported required check does not fail — it waits, blocking every merge with
# nothing red to point at.
on:
  push:
    branches: [main, release-v*]
  pull_request:
    branches: [main, release-v*]
    types: [opened, synchronize, reopened, ready_for_review]
  schedule:
    - cron: 17 5 * * 0
permissions: {}
jobs:
  analyze:
    uses: SchweizerischeBundesbahnen/github-workflows-polarion/.github/workflows/reusable-codeql-java.yml@main
    permissions:
      contents: read
      security-events: write
      actions: read
      packages: read
    secrets:
      IO_JFROG_SBB_POLARION_TOKEN: ${{ secrets.IO_JFROG_SBB_POLARION_TOKEN }}
  analyze-javascript:
    uses: SchweizerischeBundesbahnen/github-workflows-polarion/.github/workflows/reusable-codeql-javascript.yml@main
    permissions:
      contents: read
      security-events: write
      actions: read
    # `languages` defaults to '["javascript-typescript", "actions"]'. A
    # repository with no JavaScript or TypeScript source must narrow it, because
    # CodeQL fails an analysis that finds no source file of a language it was
    # asked for:
    #   with:
    #     languages: '["actions"]'
# Maven release-please guard — blocks merges when base branch pom.xml is not a SNAPSHOT
# Requires branch protection: add "release-please-guard" as required status check
# and enable "Require branches to be up to date before merging"
on:
  pull_request:
    types: [opened, synchronize, reopened]
permissions: {}
jobs:
  release-please-guard:
    uses: SchweizerischeBundesbahnen/github-workflows-polarion/.github/workflows/reusable-release-please-guard.yml@main
    permissions:
      contents: read

Each reusable workflow has a corresponding caller workflow (e.g. claude-code-review.yml) that demonstrates how this repository itself uses it.

Security

SBB manages SECURITY.md at the organization level. Add repository-specific security notes only if the project needs additional instructions beyond the organization default.

Contributing

See CONTRIBUTING.md for reporting bugs, proposing changes, and submitting pull requests.