-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Schedule Trivy scan for maintenance branches
- Loading branch information
Showing
3 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Trivy Vulnerability Scan (Repo mode) Dispatcher (1.0.x) | ||
|
||
on: | ||
schedule: | ||
- cron: '0 15 * * */3' # Once every 3 day at 15:00 UTC | ||
workflow_dispatch: | ||
|
||
jobs: | ||
dispatch_trivy_workflow: | ||
name: Dispatch scan workflow | ||
if: github.repository == 'spring-projects/spring-pulsar' | ||
strategy: | ||
matrix: | ||
# List of active maintenance branches. | ||
branch: [ 1.0.x ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
- name: Dispatch | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} | ||
run: gh workflow run trivy-scan.yml -r ${{ matrix.branch }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Trivy Vulnerability Scan (Repo mode) Dispatcher (1.1.x) | ||
|
||
on: | ||
schedule: | ||
- cron: '0 16 * * */3' # Once every 3 day at 16:00 UTC | ||
workflow_dispatch: | ||
|
||
jobs: | ||
dispatch_trivy_workflow: | ||
name: Dispatch scan workflow | ||
if: github.repository == 'spring-projects/spring-pulsar' | ||
strategy: | ||
matrix: | ||
# List of active maintenance branches. | ||
branch: [ 1.1.x ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
- name: Dispatch | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} | ||
run: gh workflow run trivy-scan.yml -r ${{ matrix.branch }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters