From 759e298106b0462d472fc1d5637bb4ea923d6a8b Mon Sep 17 00:00:00 2001 From: Jintin Date: Sun, 19 Apr 2026 15:38:50 +0800 Subject: [PATCH 1/3] Remove Codacy, add CodeQL and License badges --- .github/workflows/codeql.yml | 30 ++++++++++++++++++++++++++++++ README.md | 3 ++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..3249a18 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,30 @@ +name: "CodeQL" + +on: + push: + branches: [ master, main ] + pull_request: + branches: [ master, main ] + schedule: + - cron: '28 17 * * 5' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: javascript-typescript + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 diff --git a/README.md b/README.md index 3f1dbbd..c0cebfe 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # aliasme -[![Codacy Badge](https://api.codacy.com/project/badge/Grade/dc29953069bf43438f4abac2629e4b5a)](https://app.codacy.com/app/Jintin/aliasme?utm_source=github.com&utm_medium=referral&utm_content=Jintin/aliasme&utm_campaign=badger) [![CI](https://github.com/Jintin/aliasme/actions/workflows/ci.yml/badge.svg)](https://github.com/Jintin/aliasme/actions/workflows/ci.yml) +[![CodeQL](https://github.com/Jintin/aliasme/actions/workflows/codeql.yml/badge.svg)](https://github.com/Jintin/aliasme/actions/workflows/codeql.yml) +[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/alebcay/awesome-shell) A shell script to organize your alias in command line. From 897adb9a9d76b809b1040f80f17ebc57e9b54184 Mon Sep 17 00:00:00 2001 From: Jintin Date: Sun, 19 Apr 2026 15:46:44 +0800 Subject: [PATCH 2/3] Remove incompatible CodeQL and fix badges --- .github/workflows/codeql.yml | 30 ------------------------------ README.md | 1 - 2 files changed, 31 deletions(-) delete mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index 3249a18..0000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: "CodeQL" - -on: - push: - branches: [ master, main ] - pull_request: - branches: [ master, main ] - schedule: - - cron: '28 17 * * 5' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: javascript-typescript - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 diff --git a/README.md b/README.md index c0cebfe..b13f2d1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # aliasme [![CI](https://github.com/Jintin/aliasme/actions/workflows/ci.yml/badge.svg)](https://github.com/Jintin/aliasme/actions/workflows/ci.yml) -[![CodeQL](https://github.com/Jintin/aliasme/actions/workflows/codeql.yml/badge.svg)](https://github.com/Jintin/aliasme/actions/workflows/codeql.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/alebcay/awesome-shell) From bfccd4e94bd3acc557259ef123493cd49dc95da4 Mon Sep 17 00:00:00 2001 From: Jintin Date: Sun, 19 Apr 2026 15:51:34 +0800 Subject: [PATCH 3/3] Restore Codacy badge with correct URL --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b13f2d1..a9f0511 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # aliasme +[![Codacy Badge](https://app.codacy.com/project/badge/Grade/dc29953069bf43438f4abac2629e4b5a)](https://app.codacy.com/gh/Jintin/aliasme/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [![CI](https://github.com/Jintin/aliasme/actions/workflows/ci.yml/badge.svg)](https://github.com/Jintin/aliasme/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/alebcay/awesome-shell)