Skip to content
Merged
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
6 changes: 6 additions & 0 deletions .github/workflows/blackduck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ on:
schedule:
- cron: 0 23 * * *

permissions: {}

jobs:
scan:
name: "Blackduck Scan"
runs-on: ubuntu-latest
permissions:
contents: read
timeout-minutes: 15
steps:
- uses: actions/checkout@v6
Expand All @@ -19,6 +23,8 @@ jobs:

notify-job:
runs-on: ubuntu-latest
permissions:
contents: read
needs: [ scan ]
if: ${{ failure() && github.ref == 'refs/heads/main' }}
steps:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,16 @@ env:
MVN_SINGLE_THREADED_ARGS: --batch-mode --no-transfer-progress --fail-at-end --show-version --threads 1
MVN_SKIP_CI_PLUGINS: -DskipFormatting -Denforcer.skip -Djacoco.skip -Dmdep.analyze.skip

permissions: {}

jobs:
context:
name: "Collect Context"
outputs:
commit: ${{ steps.calculate-commit-sha.outputs.COMMIT }}
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: "Calculate Commit SHA"
id: calculate-commit-sha
Expand All @@ -79,6 +83,8 @@ jobs:
name: "Check Formatting"
needs: [ context ]
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: "Checkout Repository"
uses: actions/checkout@v6
Expand Down Expand Up @@ -106,6 +112,8 @@ jobs:
name: "Build"
needs: [ context, check-formatting ]
runs-on: ubuntu-latest
permissions:
contents: read # upload-artifacts does not use github-token
steps:
- name: "Checkout repository"
uses: actions/checkout@v6
Expand Down Expand Up @@ -160,6 +168,8 @@ jobs:
name: "Test"
needs: [ context, build ]
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: "Checkout repository"
uses: actions/checkout@v6
Expand Down Expand Up @@ -202,6 +212,8 @@ jobs:
static-code-analysis:
needs: [ context, build ]
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
task:
Expand Down Expand Up @@ -262,6 +274,9 @@ jobs:
name: "Run CodeQL Analysis"
needs: [ context ]
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write # needed for Perform CodeQL Analysis
steps:
- name: "Checkout repository"
uses: actions/checkout@v6
Expand Down Expand Up @@ -301,6 +316,8 @@ jobs:
test-archetypes:
runs-on: ubuntu-latest
needs: [ context, build ]
permissions:
contents: read
strategy:
matrix:
task:
Expand Down Expand Up @@ -396,6 +413,8 @@ jobs:
if: ${{ github.event.inputs.run-blackduck-scan == 'true' }}
needs: [ context ]
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: "Checkout repository"
uses: actions/checkout@v6
Expand All @@ -412,6 +431,8 @@ jobs:
if: ${{ github.event.inputs.run-security-rating == 'true' }}
needs: [ context ]
runs-on: ubuntu-latest
permissions:
contents: write # needed for Run FOSStars Rating
steps:
- name: "Checkout repository"
uses: actions/checkout@v6
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dependabot-automerge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ env:
jobs:
review-prs:
runs-on: ubuntu-latest
permissions:
contents: read # all write operations use app token
steps:
- name: Checkout
uses: actions/checkout@v6
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
deploy-snapshot:
name: Deploy Snapshot
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: "Checkout Repository"
uses: actions/checkout@v6
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/fosstars-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
create_fosstars_report:
runs-on: ubuntu-latest
name: "Security rating"
permissions:
contents: write # needed to push to branch
steps:
- uses: actions/checkout@v6
- uses: SAP/fosstars-rating-core-action@v1.14.0
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/javadoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
build:
name: 'JavaDoc to Documentation Portal'
runs-on: ubuntu-latest
permissions:
contents: read # all write operations use app token

steps:
- name: 'Prepare git'
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/prepare-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ env:
JAVA_VERSION: 17
DOCS_REPO: SAP/cloud-sdk

permissions: {}

jobs:
bump-version:
name: 'Bump Version'
Expand All @@ -29,6 +31,8 @@ jobs:
release-commit: ${{ steps.prepare-release.outputs.RELEASE_COMMIT_ID }}
release-tag: ${{ steps.prepare-release.outputs.TAG_NAME }}
runs-on: ubuntu-latest
permissions:
contents: write # needed for git push
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v6
Expand Down Expand Up @@ -180,6 +184,8 @@ jobs:
outputs:
pr-url: ${{ steps.create-release-notes-pr.outputs.PR_URL }}
runs-on: ubuntu-latest
permissions:
contents: read # all write operations use app token
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(minor/preference)

This comment doesn't add much

steps:
- name: 'Create GitHub App Token'
id: app-token
Expand Down Expand Up @@ -269,6 +275,8 @@ jobs:
outputs:
pr-url: ${{ steps.create-code-pr.outputs.PR_URL }}
runs-on: ubuntu-latest
permissions:
contents: read # all write operations use app token
steps:
- name: 'Create GitHub App Token'
id: app-token
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/reuse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: REUSE Compliance Check
Expand Down