forked from shaarli/Shaarli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github actions: run daily trivy security scans on release docker imag…
…e, composer/yarn dependencies - add badge to README - any time a new vulnerability is found by this workflow, means it is probably time to update Shaarli's base docker image and perform a new release, and/or update npm dependencies (npm audit fix) or composer dependencies (composer update) - similar jobs already exist in the pipeline for master/latest docker image but will not raise an error - fixes shaarli#1531
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
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 security scans (release) | ||
on: | ||
schedule: | ||
- cron: '0 17 * * 1' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
trivy-repo: | ||
runs-on: ubuntu-latest | ||
name: trivy scan (release composer/yarn dependencies) | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Run trivy scanner on repository | ||
run: make test_trivy_repo TRIVY_TARGET_BRANCH=origin/release TRIVY_EXIT_CODE=1 | ||
trivy-docker: | ||
runs-on: ubuntu-latest | ||
name: trivy scan (release docker image) | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Run trivy scanner on release docker image | ||
run: make test_trivy_docker TRIVY_TARGET_DOCKER_IMAGE=ghcr.io/shaarli/shaarli:release |
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
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