|
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" |
4 | 9 | schedule: |
5 | 10 | - cron: '42 03 * * MON-FRI' # 03:42 on weekdays, a somewhat random time to avoid producing load spikes on the GH actions infrastructure |
6 | 11 |
|
|
18 | 23 | steps: |
19 | 24 | - name: "Checkout repository" |
20 | 25 | uses: actions/checkout@v4 |
| 26 | + with: |
| 27 | + ref: refs/heads/${{ github.event.inputs.branch }} |
21 | 28 |
|
22 | 29 | - name: "Setup java" |
23 | 30 | uses: actions/setup-java@v4 |
|
38 | 45 | MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting" |
39 | 46 | mvn $MVN_ARGS |
40 | 47 |
|
41 | | - - name: "Fosstars Rating" |
42 | | - |
43 | | - with: |
44 | | - report-branch: fosstars-report |
45 | | - token: ${{ secrets.GITHUB_TOKEN }} |
46 | | - |
47 | 48 | - name: "CVE Scan" |
48 | 49 | env: |
49 | 50 | NVD_API_KEY: ${{ secrets.NVD_API_KEY }} |
@@ -73,13 +74,19 @@ jobs: |
73 | 74 | path: ${{ env.CVE_CACHE_DIR }} |
74 | 75 | key: ${{ env.CVE_CACHE_KEY }} |
75 | 76 |
|
76 | | - - name: "Slack Notification" |
77 | | - if: failure() |
78 | | - |
| 77 | + - name: "Fosstars Rating" |
| 78 | + |
79 | 79 | with: |
80 | | - webhook: ${{ secrets.SLACK_WEBHOOK }} |
81 | | - webhook-type: incoming-webhook |
82 | | - payload: | |
83 | | - { |
84 | | - "text": "⚠️ OWASP Dependency check failed! 😬 Please inspect & fix by clicking <https://github.com/SAP/ai-sdk-java/actions/runs/${{ github.run_id }}|here>" |
85 | | - } |
| 80 | + report-branch: fosstars-report |
| 81 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 82 | + |
| 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 | + # } |
0 commit comments