mirror of
https://github.com/tommytran732/Matrix.to-Docker
synced 2024-11-22 18:11:32 -05:00
Change build schedule to daily
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
fc894556bb
commit
1a9dd596ed
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -9,8 +9,8 @@ on:
|
|||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**.md'
|
- '**.md'
|
||||||
schedule:
|
schedule:
|
||||||
# Build the image regularly (each Saturday)
|
# Build the image daily
|
||||||
- cron: '0 22 * * 6'
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
|
29
.github/workflows/scan.yml
vendored
29
.github/workflows/scan.yml
vendored
@ -1,29 +0,0 @@
|
|||||||
name: Scan
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
schedule:
|
|
||||||
# Scan the image regularly (once a day)
|
|
||||||
- cron: '0 23 * * *'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
scan:
|
|
||||||
name: Scan current image & report results
|
|
||||||
permissions:
|
|
||||||
security-events: write
|
|
||||||
runs-on: "ubuntu-latest"
|
|
||||||
steps:
|
|
||||||
- name: Run Trivy vulnerability scanner
|
|
||||||
uses: aquasecurity/trivy-action@master
|
|
||||||
with:
|
|
||||||
image-ref: 'ghcr.io/tommytran732/matrix.to'
|
|
||||||
format: 'template'
|
|
||||||
template: '@/contrib/sarif.tpl'
|
|
||||||
output: 'trivy-results.sarif'
|
|
||||||
severity: 'UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL'
|
|
||||||
vuln-type: "os,library"
|
|
||||||
|
|
||||||
- name: Upload Trivy scan results to GitHub Security tab
|
|
||||||
uses: github/codeql-action/upload-sarif@v3
|
|
||||||
with:
|
|
||||||
sarif_file: 'trivy-results.sarif'
|
|
Loading…
Reference in New Issue
Block a user