Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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: 0 additions & 24 deletions .github/workflows/openssfscorecard.yaml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/openssfscorecard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# SPDX-FileCopyrightText: 2025 diggsweden/rest-api-profil-lint-processor
#
# SPDX-License-Identifier: CC0-1.0

---
name: OpenSSF Scorecard analysis

on:
push:
branches:
- main
schedule:
# Weekly on Thursdays at 01:30 UTC
- cron: "30 1 * * 4"

permissions:
contents: read # Best Security practice. Jobs only get read as base, and then permissions are added as needed

jobs:
scorecard-analysis:
permissions:
contents: read
security-events: write
id-token: write
uses: diggsweden/reusable-ci/.github/workflows/security-openssf-scorecard.yml@v1
28 changes: 0 additions & 28 deletions .github/workflows/pre-release-workflow.yaml

This file was deleted.

88 changes: 0 additions & 88 deletions .github/workflows/publish-image.yaml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/publish-package.yaml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/pullrequest-workflow.yaml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/pullrequest-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# SPDX-FileCopyrightText: 2025 diggsweden/rest-api-profil-lint-processor
#
# SPDX-License-Identifier: CC0-1.0

---
name: Pull Request Workflow

on:
pull_request:
branches:
- main
- develop
- 'release/**'
- 'feature/**'

permissions:
contents: read # Best Security practice. Jobs only get read as base, and then permissions are added as needed

jobs:
pr-checks:
uses: diggsweden/reusable-ci/.github/workflows/pullrequest-orchestrator.yml@v1
secrets: inherit # Pass org-level secrets (NPM token if private packages)
permissions:
contents: read # Clone repository and read source code
packages: read # Access private NPM packages from GitHub registry
security-events: write # Upload ESLint/security findings to GitHub Security tab
with:
projectType: npm
# MegaLinter is disabled for this project
linters.megalint: false # Skip MegaLinter
linters.publiccodelint: true

test:
needs: [pr-checks]
if: always() # Run tests even if linting fails (get full CI feedback)
permissions:
contents: read # Read test files and source code
packages: read # Fetch test dependencies from registry
uses: ./.github/workflows/test.yml
36 changes: 36 additions & 0 deletions .github/workflows/release-dev-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# SPDX-FileCopyrightText: 2025 diggsweden/rest-api-profil-lint-processor
#
# SPDX-License-Identifier: CC0-1.0

# Release Workflow Dev
#
# This workflow triggers the dev release orchestrator for development and feature branches.
# It creates dev-tagged artifacts and container images for testing.
#
# Triggers:
# - Push to dev/* or feat/* branches
# - Manual workflow dispatch
#
# Created artifacts:
# - Maven/NPM packages with -dev versions (e.g., 1.2.4-dev.1)
# - Container images with dev tags
# - See release summary for full details

name: Release Workflow Dev

on:
push:
branches:
- 'dev/**'
- 'feat/**'
workflow_dispatch:

jobs:
dev-release:
permissions:
contents: write # Read code and create version bump commits
packages: write # Push dev images to ghcr.io
uses: diggsweden/reusable-ci/.github/workflows/release-dev-orchestrator.yml@v1
with:
projectType: npm
secrets: inherit
Loading