Skip to content

Commit e415dad

Browse files
committed
Initial
0 parents  commit e415dad

File tree

7 files changed

+106
-0
lines changed

7 files changed

+106
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
workflow_call:
14+
schedule:
15+
- cron: '39 13 * * 4'
16+
17+
18+
jobs:
19+
analyze:
20+
name: Analyze
21+
runs-on: ubuntu-latest
22+
permissions:
23+
actions: read
24+
contents: read
25+
security-events: write
26+
27+
strategy:
28+
fail-fast: false
29+
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
34+
# Initializes the CodeQL tools for scanning.
35+
- name: Initialize CodeQL
36+
uses: github/codeql-action/init@v3
37+
with:
38+
languages: 'actions'
39+
build-mode: 'none'
40+
# 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
41+
queries: security-extended,security-and-quality
42+
43+
# We are only doing actions which does not require a build
44+
45+
- name: Perform CodeQL Analysis
46+
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-actions/.github/workflows/codeql-analysis.yml@1
21+
----

0 commit comments

Comments
 (0)