Skip to content

Commit 093e490

Browse files
authored
new (#41)
<!-- markdownlint-disable MD041 --> #### What this PR does / why we need it #### Which issue(s) this PR fixes <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. -->
1 parent 62dc81f commit 093e490

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/rotate-bdba-token.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ jobs:
5050
run: |
5151
# Authenticate with the GitHub CLI using the generated token
5252
gh auth login --with-token <<< ${{ steps.generate-bdba-token.outputs.token }}
53-
53+
5454
# List of specific repositories to update
5555
# Secrets do not work out of the box for BDBA action
56-
# workflow_run trigger requires GH environments and
56+
# workflow_run trigger requires GH environments and
5757
# environments require repo-scoped secrets
5858
REPOSITORIES=("open-component-model" "ocm-cicd-playground" "ocm-k8s-toolkit" "ocm-controller")
59-
59+
6060
# Loop through each repository and set the secret
6161
for repo in "${REPOSITORIES[@]}"; do
6262
echo "Setting BDBA_API_TOKEN for repository: $repo"
6363
gh secret set BDBA_API_TOKEN \
6464
--repo "open-component-model/$repo" \
6565
--body "${{ steps.generate-bdba-token.outputs.bdba_token }}"
6666
done
67-
67+
6868
echo "BDBA API token successfully rotated for specific repositories at $(date)"

0 commit comments

Comments
 (0)