Skip to content

Commit 90437b0

Browse files
committed
Revert temporary changes
1 parent 81accba commit 90437b0

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

.github/workflows/fosstars-report.yml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
name: "Fosstars (Security)"
22
on:
33
workflow_dispatch:
4-
inputs:
5-
branch:
6-
description: "Branch to create the report for"
7-
required: true
8-
default: "main"
94
schedule:
105
- cron: '42 03 * * MON-FRI' # 03:42 on weekdays, a somewhat random time to avoid producing load spikes on the GH actions infrastructure
116

@@ -23,8 +18,6 @@ jobs:
2318
steps:
2419
- name: "Checkout repository"
2520
uses: actions/checkout@v4
26-
with:
27-
ref: refs/heads/${{ github.event.inputs.branch }}
2821

2922
- name: "Setup java"
3023
uses: actions/setup-java@v4
@@ -74,19 +67,20 @@ jobs:
7467
path: ${{ env.CVE_CACHE_DIR }}
7568
key: ${{ env.CVE_CACHE_KEY }}
7669

70+
# This action changes the active branch!
7771
- name: "Fosstars Rating"
7872
7973
with:
8074
report-branch: fosstars-report
8175
token: ${{ secrets.GITHUB_TOKEN }}
8276

83-
# - name: "Slack Notification"
84-
# if: failure()
85-
# uses: slackapi/[email protected]
86-
# with:
87-
# webhook: ${{ secrets.SLACK_WEBHOOK }}
88-
# webhook-type: incoming-webhook
89-
# payload: |
90-
# {
91-
# "text": "⚠️ OWASP Dependency check failed! 😬 Please inspect & fix by clicking <https://github.com/SAP/ai-sdk-java/actions/runs/${{ github.run_id }}|here>"
92-
# }
77+
- name: "Slack Notification"
78+
if: failure()
79+
uses: slackapi/[email protected]
80+
with:
81+
webhook: ${{ secrets.SLACK_WEBHOOK }}
82+
webhook-type: incoming-webhook
83+
payload: |
84+
{
85+
"text": "⚠️ OWASP Dependency check failed! 😬 Please inspect & fix by clicking <https://github.com/SAP/ai-sdk-java/actions/runs/${{ github.run_id }}|here>"
86+
}

0 commit comments

Comments
 (0)