Skip to content

Commit 8aefa09

Browse files
committed
Initial
0 parents  commit 8aefa09

File tree

7 files changed

+105
-0
lines changed

7 files changed

+105
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Based off of https://github.com/actions/reusable-workflows/blob/95d9656793415e47f574f7967f3850ea3bf5a7ed/.github/workflows/codeql-analysis.yml
2+
# This is modified to simplify the configuration for Spring Projects
3+
# This workflow helps to analyze repository code for vulnerabilities, bugs, and other errors using CodeQL.
4+
# For that CodeQL Action is used: https://github.com/github/codeql-action
5+
# Learn more about CodeQL at https://codeql.github.com/
6+
7+
name: CodeQL
8+
9+
on:
10+
push:
11+
pull_request:
12+
workflow_dispatch:
13+
schedule:
14+
- cron: '39 13 * * 4'
15+
16+
17+
jobs:
18+
analyze:
19+
name: Analyze
20+
runs-on: ubuntu-latest
21+
permissions:
22+
actions: read
23+
contents: read
24+
security-events: write
25+
26+
strategy:
27+
fail-fast: false
28+
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
33+
# Initializes the CodeQL tools for scanning.
34+
- name: Initialize CodeQL
35+
uses: github/codeql-action/init@v3
36+
with:
37+
languages: 'actions'
38+
build-mode: 'none'
39+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
40+
queries: security-extended,security-and-quality
41+
42+
# We are only doing actions which does not require a build
43+
44+
- name: Perform CodeQL Analysis
45+
uses: github/codeql-action/analyze@v3

.idea/.gitignore

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/main.iml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.adoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
= A Workflow for Running CodeQL Actions
2+
3+
Based off of GitHub's https://github.com/actions/reusable-workflows/blob/95d9656793415e47f574f7967f3850ea3bf5a7ed/.github/workflows/codeql-analysis.yml[reusable workflow], this action is modified to run CodeQL for the actions language.
4+
5+
.github/workflows/codeql.yml
6+
[source,yaml]
7+
----
8+
name: "CodeQL Advanced"
9+
10+
on:
11+
push:
12+
pull_request:
13+
workflow_dispatch:
14+
schedule:
15+
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule
16+
- cron: '0 5 * * *'
17+
18+
jobs:
19+
codeql-analysis-call:
20+
uses: spring-io/codeql-/.github/workflows/codeql-analysis.yml@1
21+
----

0 commit comments

Comments
 (0)