Skip to content

Commit 558c3c7

Browse files
committed
fix: remove otp actions
1 parent ed71f41 commit 558c3c7

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

.github/workflows/release-npm.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -110,27 +110,6 @@ jobs:
110110
- name: Show binding packages
111111
run: ls -R bindings
112112

113-
- name: Obtain OIDC token
114-
id: oidc
115-
run: |
116-
token=$(curl --fail -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
117-
"$ACTIONS_ID_TOKEN_REQUEST_URL&audience=cfa.rspack.dev" | jq -r '.value')
118-
echo "::add-mask::${token}"
119-
echo "token=${token}" >> $GITHUB_OUTPUT
120-
shell: bash
121-
122-
- name: Obtain GitHub credentials
123-
id: github_creds
124-
run: |
125-
token=$(curl --fail "https://cfa.rspack.dev/api/request/${{ secrets.CFA_PROJECT_ID }}/github/credentials" \
126-
-X POST \
127-
-H "Content-Type: application/json" \
128-
-H "Authorization: bearer ${{ secrets.CFA_SECRET }}" \
129-
--data "{\"token\":\"${{ steps.oidc.outputs.token }}\"}" | jq -r '.GITHUB_TOKEN')
130-
echo "::add-mask::${token}"
131-
echo "token=${token}" >> $GITHUB_OUTPUT
132-
shell: bash
133-
134113
- name: Update npm
135114
run: npm install -g npm@latest
136115

0 commit comments

Comments
 (0)