diff --git a/.github/workflows/fossa.yml b/.github/workflows/fossa.yml deleted file mode 100644 index 491d41960..000000000 --- a/.github/workflows/fossa.yml +++ /dev/null @@ -1,84 +0,0 @@ -# This workflow scans the licenses with Fossa and waits until the license test finished -name: Fossa License Scan - -on: - workflow_run: - workflows: - - Push Workflow Trigger - types: - - completed - -jobs: - fossa-license-analyze: - name: "Fossa ${{ github.event.workflow_run.head_branch != 'main' && format('PR {0}', github.event.workflow_run.pull_requests[0].number) || 'main' }}" - runs-on: ubuntu-latest - timeout-minutes: 60 - steps: - - name: Initiate check - env: - SHA: "${{ github.event.workflow_run.head_sha }}" - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - run: >- - gh api - --method POST - -H "Accept: application/vnd.github+json" - /repos/${GITHUB_REPOSITORY}/statuses/${SHA} - -f state='pending' - -f target_url=https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} - -f description='Checking Licenses' - -f context='fossa-license-analyze' - continue-on-error: true - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7 - with: - ref: ${{ github.event.workflow_run.head_sha }} # checkout commit that triggered this workflow - - - name: Set up JDK 17 - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 - with: - distribution: 'temurin' - java-version: 17 - cache: 'gradle' - - - name: Install Fossa - run: "curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/v3.2.8/install-latest.sh | sudo bash" - - - name: Fossa Analyze - env: - FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} - BRANCH: ${{ github.event.workflow_run.head_branch }} - run: fossa analyze --project "sda-spring-boot-commons" --branch "$BRANCH" - - - name: Fossa Test - env: - FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} - run: fossa test --project "sda-spring-boot-commons" --debug - - name: Successful check - if: success() - env: - SHA: "${{ github.event.workflow_run.head_sha }}" - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - run: >- - gh api - --method POST - -H "Accept: application/vnd.github+json" - /repos/${GITHUB_REPOSITORY}/statuses/${SHA} - -f state='success' - -f target_url=https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} - -f description='License approved' - -f context='fossa-license-analyze' - continue-on-error: true - - name: Failed check - if: failure() - env: - SHA: "${{ github.event.workflow_run.head_sha }}" - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - run: >- - gh api - --method POST - -H "Accept: application/vnd.github+json" - /repos/${GITHUB_REPOSITORY}/statuses/${SHA} - -f state='failure' - -f target_url=https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID} - -f description='License check failed' - -f context='fossa-license-analyze' - continue-on-error: true diff --git a/.github/workflows/workflow-trigger.yml b/.github/workflows/workflow-trigger.yml deleted file mode 100644 index 9d1294989..000000000 --- a/.github/workflows/workflow-trigger.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: Push Workflow Trigger - -on: - push - -jobs: - check-dependabot: - runs-on: ubuntu-latest - steps: - - run: echo "Push event occured, subsequently workflows will be triggered." diff --git a/README.md b/README.md index b8e0329f5..88dcc5597 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [![Latest Release](https://img.shields.io/github/v/release/sda-se/sda-spring-boot-commons?label=latest)](https://github.com/SDA-SE/sda-spring-boot-commons/releases/latest) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.sdase.commons.spring.boot/sda-commons-starter-web/badge.svg)](https://search.maven.org/search?q=org.sdase.commons.spring.boot) [![Java CI](https://github.com/SDA-SE/sda-spring-boot-commons/actions/workflows/java-ci.yaml/badge.svg)](https://github.com/SDA-SE/sda-spring-boot-commons/actions/workflows/java-ci.yaml) -[![FOSSA Status](https://app.fossa.com/api/projects/custom%2B8463%2Fsda-spring-boot-commons.svg?type=shield)](https://app.fossa.com/reports/868957a2-81ed-4de3-8d43-dd59da3f8c68) ![spring](https://user-images.githubusercontent.com/61695677/155694976-dc7f9376-32ef-4be0-a919-3cc41a1f0341.png)