1
0
mirror of https://github.com/tommytran732/Matrix.to-Docker synced 2024-11-22 01:51:33 -05:00

Change build schedule to daily

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-06-12 01:10:09 -07:00
parent fc894556bb
commit 1a9dd596ed
Signed by: Tomster
GPG Key ID: 555C902A34EC968F
2 changed files with 2 additions and 31 deletions

View File

@ -9,8 +9,8 @@ on:
paths-ignore:
- '**.md'
schedule:
# Build the image regularly (each Saturday)
- cron: '0 22 * * 6'
# Build the image daily
- cron: '0 0 * * *'
env:
REGISTRY: ghcr.io

View File

@ -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'