Skip to content

Commit d81ba93

Browse files
committed
Enable CodeQL Analysis of GitHub Actions workflows
1 parent f2681c3 commit d81ba93

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

.github/workflows/build-and-deploy-snapshot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
branches:
55
- main
6+
permissions:
7+
contents: read
68
concurrency:
79
group: ${{ github.workflow }}-${{ github.ref }}
810
jobs:

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
tags:
55
- v[0-9]+.[0-9]+.[0-9]+
6+
permissions:
7+
contents: read
68
concurrency:
79
group: ${{ github.workflow }}-${{ github.ref }}
810
jobs:
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Run CodeQL Analysis"
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: '45 0 * * 1'
8+
permissions: read-all
9+
jobs:
10+
run-analysis:
11+
permissions:
12+
actions: read
13+
contents: read
14+
security-events: write
15+
uses: spring-io/github-actions/.github/workflows/codeql-analysis.yml@6e66995f7d29de1e4ff76e4f0def7a10163fe910

.github/workflows/validate-gradle-wrapper.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "Validate Gradle Wrapper"
22
on: [push, pull_request]
3-
3+
permissions:
4+
contents: read
45
jobs:
56
validate-gradle-wrapper:
67
name: Validate Gradle wrapper

0 commit comments

Comments
 (0)