From 18486095137741d62969ac69085b1c3c6f0ad8bb Mon Sep 17 00:00:00 2001 From: 20230101 <120622510+20230101@users.noreply.github.com> Date: Tue, 27 Jun 2023 17:52:42 +0800 Subject: [PATCH 1/4] Create code_quality.yml --- .github/workflows/code_quality.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/code_quality.yml diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml new file mode 100644 index 00000000..9dc46562 --- /dev/null +++ b/.github/workflows/code_quality.yml @@ -0,0 +1,19 @@ +name: Qodana +on: + workflow_dispatch: + pull_request: + push: + branches: + - main + - 'releases/*' + +jobs: + qodana: + timeout-minutes: 15 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: 'Qodana Scan' + uses: JetBrains/qodana-action@v2023.1.0 From 013dfb0980c54fdb383a0605fa660b3ec088f122 Mon Sep 17 00:00:00 2001 From: 20230101 <120622510+20230101@users.noreply.github.com> Date: Tue, 27 Jun 2023 17:55:39 +0800 Subject: [PATCH 2/4] Update code_quality.yml --- .github/workflows/code_quality.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index 9dc46562..706f17fd 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -17,3 +17,5 @@ jobs: fetch-depth: 0 - name: 'Qodana Scan' uses: JetBrains/qodana-action@v2023.1.0 + env: + QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} From 01d60ce220b2663e3ea55edbbf0889330dc450a7 Mon Sep 17 00:00:00 2001 From: 20230101 <120622510+20230101@users.noreply.github.com> Date: Tue, 27 Jun 2023 17:59:20 +0800 Subject: [PATCH 3/4] Update code_quality.yml --- .github/workflows/code_quality.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index 706f17fd..23ecc9f3 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -16,6 +16,6 @@ jobs: with: fetch-depth: 0 - name: 'Qodana Scan' - uses: JetBrains/qodana-action@v2023.1.0 + uses: 20230101/java-sec-code env: QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} From b1e3930a2388834e85a345f73a72b19d351ad66d Mon Sep 17 00:00:00 2001 From: 20230101 <120622510+20230101@users.noreply.github.com> Date: Tue, 27 Jun 2023 18:03:03 +0800 Subject: [PATCH 4/4] Update code_quality.yml --- .github/workflows/code_quality.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index 23ecc9f3..31d27123 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -5,17 +5,15 @@ on: push: branches: - main - - 'releases/*' jobs: qodana: - timeout-minutes: 15 runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - - name: 'Qodana Scan' - uses: 20230101/java-sec-code + - name: "Qodana Scan" + uses: JetBrains/qodana-action@v2022.3.2 env: - QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} + QODANA_TOKEN: ${{secrets.QODANA_TOKEN}}