diff --git a/.github/workflows/snyk-agent.yaml b/.github/workflows/snyk-agent.yaml new file mode 100644 index 00000000000..efedbfe728e --- /dev/null +++ b/.github/workflows/snyk-agent.yaml @@ -0,0 +1,30 @@ +name: Daily Snyk Agent + +on: + schedule: + # Runs at 9:00 AM UTC every day + - cron: "0 9 * * *" + workflow_dispatch: # Allows manual triggering + +jobs: + run-cn-task: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v5 + with: + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 + + - name: Setup Node.js + uses: actions/setup-node@v5 + with: + node-version: "20" + + - name: Install Continue CLI globally + run: npm install -g @continuedev/cli@latest + + - name: Run Snyk Agent + run: cd extensions/cli && cn -p --agent continuedev/snyk-code-scan-agent "The current directory" + env: + SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}