Skip to content

Commit

Permalink
SC-1023 set up cron scans in all repos
Browse files Browse the repository at this point in the history
  • Loading branch information
ivvoitenko committed Jul 22, 2024
1 parent b43eb56 commit 331dda2
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/cron-sast-code.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: cron-sast-code

on:
schedule:
- cron: '0 1 * * 1'
workflow_dispatch: {}

jobs:
ecr-login:
name: "sast: Scan repo"
concurrency:
group: sast-scan-${{ github.ref }}
cancel-in-progress: true
runs-on: general-micro-x86-v2
env:
ENV_CONFIG_RULES: "-c p/default -c p/secrets -c r/generic.secrets -c p/owasp-top-ten -c p/semgrep-misconfigurations -c p/c -c p/dockerfile -c p/docker-compose"
steps:
- uses: actions/checkout@v4

- name: Configure AWS credentials for S3
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::111087410577:role/lf_gha_s3_rwd_role
role-skip-session-tagging: true
role-duration-seconds: 3600
unset-current-credentials: true
aws-region: us-east-1


- name: Run scan job
uses: lotusflare/actions/linter-sast-code@linter-sast-code-v1
with:
aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }}
aws-session-token: ${{ env.AWS_SESSION_TOKEN }}
branch: ${{ github.head_ref || github.ref_name }}
project-name: ${{ github.repository }}
env:
ENV_CONFIG_RULES: ${{ env.ENV_CONFIG_RULES }}

0 comments on commit 331dda2

Please sign in to comment.