Skip to content

Commit 1e60eea

Browse files
committed
Add CodeQL code scanning workflow
1 parent b1eea93 commit 1e60eea

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ updates:
1717
time: '14:00'
1818
cooldown:
1919
default-days: 7
20+
groups:
21+
codeql:
22+
patterns:
23+
- github/codeql-action*
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Code scanning - action"
2+
3+
on:
4+
pull_request:
5+
schedule:
6+
- cron: '0 8 * * 4'
7+
8+
permissions:
9+
security-events: write # Used by this action.
10+
11+
jobs:
12+
CodeQL-Build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
19+
with:
20+
fetch-depth: 2
21+
persist-credentials: false
22+
23+
- run: git checkout HEAD^2
24+
if: ${{ github.event_name == 'pull_request' }}
25+
26+
- name: Initialize CodeQL
27+
uses: github/codeql-action/init@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0
28+
with:
29+
languages: ruby
30+
31+
- name: Perform CodeQL Analysis
32+
uses: github/codeql-action/analyze@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0

0 commit comments

Comments
 (0)