This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking.git
The following commit(s) were added to refs/heads/master by this push:
new 9ba746249a Fix codeql ci (#12543)
9ba746249a is described below
commit 9ba746249aa46522f341f7dc837881fecc3745dc
Author: kezhenxu94 <[email protected]>
AuthorDate: Mon Aug 19 12:32:06 2024 +0800
Fix codeql ci (#12543)
---
.github/workflows/codeql.yaml | 39 ++++++++++++++++++++++-----------------
docs/en/changes/changes.md | 1 +
2 files changed, 23 insertions(+), 17 deletions(-)
diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml
index 2335890bd7..4510063cef 100644
--- a/.github/workflows/codeql.yaml
+++ b/.github/workflows/codeql.yaml
@@ -18,20 +18,25 @@ name: "CodeQL"
on:
push:
- branches: [ 'master' ]
+ branches: ["master"]
paths:
- - '**.java'
+ - "**.java"
pull_request:
- branches: [ 'master' ]
+ branches: ["master"]
paths:
- - '**.java'
+ - "**.java"
schedule:
- - cron: '28 3 * * *'
+ - cron: "28 3 * * *"
concurrency:
group: codeql-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
+permissions:
+ actions: read
+ contents: read
+ security-events: write
+
jobs:
analyze:
if: (github.event_name == 'schedule' && github.repository ==
'apache/skywalking') || (github.event_name != 'schedule')
@@ -41,20 +46,20 @@ jobs:
strategy:
fail-fast: false
matrix:
- language: [ 'java' ]
+ language: ["java"]
steps:
- - name: Checkout repository
- uses: actions/checkout@v3
- with:
- submodules: true
+ - name: Checkout repository
+ uses: actions/checkout@v3
+ with:
+ submodules: true
- - name: Initialize CodeQL
- uses: github/codeql-action/init@v2
- with:
- languages: ${{ matrix.language }}
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@v2
+ with:
+ languages: ${{ matrix.language }}
- - run: ./mvnw -q -Dmaven.test.skip=true clean install || ./mvnw -q
-Dmaven.test.skip=true clean install
+ - run: ./mvnw -q -Dmaven.test.skip=true clean install || ./mvnw -q
-Dmaven.test.skip=true clean install
- - name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@v2
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@v2
diff --git a/docs/en/changes/changes.md b/docs/en/changes/changes.md
index 4ed207c4c4..6deb3943f3 100644
--- a/docs/en/changes/changes.md
+++ b/docs/en/changes/changes.md
@@ -5,6 +5,7 @@
* E2E: bump up the version of the opentelemetry-collector to 0.102.1.
* Push snapshot data-generator docker image to ghcr.io.
* Bump up skywalking-infra-e2e to work around GHA removing `docker-compose` v1.
+* Fix CodeQL CI.
#### OAP Server