Skip to content

Commit 3763841

Browse files
updated script issue
1 parent 124da17 commit 3763841

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/delete_github_secrets_using_workflow.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
- name: git checkout
2121
uses: actions/checkout@v4
2222
- name: delete github org secret
23+
env:
24+
GH_TOKEN: ${{ secrets.DEVWITHKRISHNA_PERSONAL_ACCESS_TOKEN }}
2325
run: |
2426
bash delete_github_org_secret.sh ${{ inputs.organization }} ${{ inputs.secret_name}}
2527
echo "Secret deleted"

delete_github_org_secret.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ response=$(curl -sL \
1919

2020

2121
# Checking if the request was successful (status code 200)
22-
if [[ "$response" == *"Status: 204"* ]];; then
22+
if [[ "$response" == *"Status: 204"* ]]; then
2323
echo "Secret $SECRET_NAME deleted successfully from organization $ORGANIZATION"
2424
else
2525
echo "Failed to delete secret $SECRET_NAME from organization $ORGANIZATION"

0 commit comments

Comments
 (0)