Github actions workflows

From Hack23/European-Parliament-MCP-Server · View interactive version

Github actions workflows is an AI agent skill from the GitHub repository Hack23/European-Parliament-MCP-Server. Secure CI/CD workflows with GitHub Actions for TypeScript 6.0.2 / Node.js 25 MCP server — 12 pipelines, SLSA Level 3, SBOM, OpenSSF Scorecard

How to use this skill

Skill file

GitHub Actions Workflows Skill

Purpose

Create and maintain secure, efficient CI/CD pipelines using GitHub Actions for this TypeScript 6.0.2 / Node.js 25 MCP server project with 12 automated workflows.

When to Use

Current Pipeline Architecture (12 Workflows)

| Stage | Workflow | Trigger | Purpose |

|-------|----------|---------|---------|

| 1. Code Validation | dependency-review.yml, labeler.yml | PR | Dependency audit, auto-labeling |

| 2. Build & Test | test-and-report.yml | Push, PR | Lint, build, test, coverage (80%+) |

| 3. Security Analysis | codeql.yml | Push, PR, Weekly | CodeQL SAST scanning |

| 4. Integration Testing | integration-tests.yml | Push, PR, Daily | E2E tests against EP API |

| 5. Release & Publish | release.yml | Tag v*, Manual | npm publish with attestation |

| 6. Supply Chain | sbom-generation.yml, slsa-provenance.yml | Push (main), Tag v*, Release publish, Manual | CycloneDX/SPDX SBOM, SLSA Level 3 |

| 7. Continuous Monitoring | scorecard.yml | Push, Weekly | OpenSSF Scorecard |

| 8. Repository Management | setup-labels.yml, copilot-setup-steps.yml, refresh-stats.yml | Manual, Push, Schedule | Labels, Copilot environment, Stats refresh |

CI/CD Pattern (Node.js 25 + TypeScript 6.0.2)

name: Test and Report
on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

permissions:
  contents: read
  checks: write

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
        with:
          egress-policy: audit
      - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
      - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
        with:
          node-version: '25'
          cache: 'npm'
      - run: npm ci
      - run: npm run lint
      - run: npm run build
      - run: npm run test:coverage

Security Best Practices (Enforced)

Test Reporting

- name: Run tests with coverage
  run: npm run test:coverage
- name: Upload coverage
  uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
  with:
    files: ./coverage/lcov.info

Release Pipeline with Attestation

release:
  if: startsWith(github.ref, 'refs/tags/v')
  permissions:
    contents: write
    id-token: write
    attestations: write
  steps:
    - run: npm ci && npm run build
    - run: npm publish --provenance --access public
      env:
        NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
    - uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0

Quality Gates

ISMS Policy References

Core policies:

Supporting policies:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.