|
1 | 1 | name: "Fosstars (Security)" |
2 | 2 | on: |
3 | 3 | workflow_dispatch: |
4 | | - inputs: |
5 | | - branch: |
6 | | - description: "Branch to create the report for" |
7 | | - required: true |
8 | | - default: "main" |
9 | 4 | schedule: |
10 | 5 | - cron: '42 03 * * MON-FRI' # 03:42 on weekdays, a somewhat random time to avoid producing load spikes on the GH actions infrastructure |
11 | 6 |
|
|
23 | 18 | steps: |
24 | 19 | - name: "Checkout repository" |
25 | 20 | uses: actions/checkout@v4 |
26 | | - with: |
27 | | - ref: refs/heads/${{ github.event.inputs.branch }} |
28 | 21 |
|
29 | 22 | - name: "Setup java" |
30 | 23 | uses: actions/setup-java@v4 |
@@ -74,19 +67,20 @@ jobs: |
74 | 67 | path: ${{ env.CVE_CACHE_DIR }} |
75 | 68 | key: ${{ env.CVE_CACHE_KEY }} |
76 | 69 |
|
| 70 | + # This action changes the active branch! |
77 | 71 | - name: "Fosstars Rating" |
78 | 72 | |
79 | 73 | with: |
80 | 74 | report-branch: fosstars-report |
81 | 75 | token: ${{ secrets.GITHUB_TOKEN }} |
82 | 76 |
|
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 | + |
| 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