Skip to content

Commit e2bed7f

Browse files
chore(ci): add deprecate action; (#10591)
1 parent a7f41f5 commit e2bed7f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/deprecate.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deprecate compromised axios version
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "Version of axios to deprecate (e.g. 1.14.1)"
8+
required: true
9+
default: "1.14.1"
10+
11+
jobs:
12+
deprecate:
13+
runs-on: ubuntu-latest
14+
15+
permissions:
16+
contents: read
17+
18+
steps:
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
registry-url: https://registry.npmjs.org/
24+
25+
- name: Deprecate selected version
26+
run: |
27+
echo "Deprecating axios@${{ github.event.inputs.version }}"
28+
npm deprecate axios@${{ github.event.inputs.version }} "🚨 SECURITY: compromised dependency (plain-crypto-js). DO NOT USE. Downgrade to 1.13.6"
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)