feat: why am I running an action when I can cron on the server

This commit is contained in:
2025-02-25 15:23:58 -08:00
parent 0c84a58e64
commit 4f880830e8
3 changed files with 51 additions and 169 deletions
-32
View File
@@ -1,32 +0,0 @@
name: Security Scan
on:
workflow_dispatch:
schedule:
# Midnight every Monday
- cron: '0 0 * * 1'
jobs:
lint:
name: Scan Repositories
runs-on: [security-runner]
steps:
- name: Checkout Source Files
uses: actions/checkout@v4
- name: Install Binaries
run: |
sudo apt-get install gitleaks trivy
curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sudo sh -s -- -b /usr/local/bin
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sudo sh -s -- -b /usr/local/bin
- name: PNPM
uses: pnpm/action-setup@v2
with:
version: 10
- name: Install Dependencies
run: pnpm i -g snyk
- name: Run scan
run: ./cron.sh