From e0cf6495367fc00ae2f4f83fa631af5103df59b1 Mon Sep 17 00:00:00 2001 From: Riley Anderson Date: Fri, 1 Sep 2023 11:02:11 -0600 Subject: [PATCH] Add codeQL workflow (#15) --- .github/dependabot.yml | 8 +++++++ .github/workflows/codeql-analysis.yml | 30 +++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..61ebb20 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + - package-ecosystem: 'bundler' + directory: '/' + schedule: + interval: 'daily' + time: '15:00' + timezone: 'UTC' diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..22b6154 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,30 @@ +name: CodeQL +'on': + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: 43 6 * * 3 + workflow_dispatch: null +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + concurrency: ${{ github.workflow }}-${{ matrix.language }}-${{ github.ref }} + permissions: + actions: read + contents: read + security-events: write + strategy: + fail-fast: false + matrix: + language: + - ruby + steps: + - name: Run Code Scanning + uses: department-of-veterans-affairs/codeql-tools/codeql-analysis@main + with: + language: ${{ matrix.language }}