Skip to content

fix: replace secrets:inherit with explicit secret references (#36) #114

fix: replace secrets:inherit with explicit secret references (#36)

fix: replace secrets:inherit with explicit secret references (#36) #114

Workflow file for this run

# Example: Copy this to your repo as .github/workflows/maven.yml
# Configuration is read from .github/project.yml - no inputs needed!
name: Maven Build
on:
push:
branches: [main, "feature/*", "fix/*", "chore/*", "dependabot/**"]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build:
# Run on push events, OR on pull_request only if from a fork
# This prevents duplicate runs: push handles internal branches, PR handles forks
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
uses: cuioss/cuioss-organization/.github/workflows/reusable-maven-build.yml@9ce5ba83776bab80eeffb695f7374e334cf6bd9f # v0.2.0
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
OSS_SONATYPE_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
OSS_SONATYPE_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}