From e2bed7f84d86e87d0641bc5910e96607092d9934 Mon Sep 17 00:00:00 2001 From: Dmitriy Mozgovoy Date: Tue, 31 Mar 2026 04:42:15 +0300 Subject: [PATCH] chore(ci): add deprecate action; (#10591) --- .github/workflows/deprecate.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/deprecate.yml diff --git a/.github/workflows/deprecate.yml b/.github/workflows/deprecate.yml new file mode 100644 index 00000000..0ea296f8 --- /dev/null +++ b/.github/workflows/deprecate.yml @@ -0,0 +1,30 @@ +name: Deprecate compromised axios version + +on: + workflow_dispatch: + inputs: + version: + description: "Version of axios to deprecate (e.g. 1.14.1)" + required: true + default: "1.14.1" + +jobs: + deprecate: + runs-on: ubuntu-latest + + permissions: + contents: read + + steps: + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ + + - name: Deprecate selected version + run: | + echo "Deprecating axios@${{ github.event.inputs.version }}" + npm deprecate axios@${{ github.event.inputs.version }} "🚨 SECURITY: compromised dependency (plain-crypto-js). DO NOT USE. Downgrade to 1.13.6" + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}