Skip to content

Commit 52356ec

Browse files
testsing secret
1 parent a6f252b commit 52356ec

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/use_org_secret.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: using secrets in github workflow
22
on:
33
workflow_dispatch:
44

5-
run-name: using secrets in ${{ inputs.organization }}
5+
run-name: using secrets
66
jobs:
7-
create-organization-github-secrets-from-workflow:
7+
using-github-secrets-from-workflow:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: use secret
@@ -17,6 +17,18 @@ jobs:
1717
run: |
1818
ls -la
1919
cat cat.txt
20+
- name: azure login
21+
uses: azure/login@v1
22+
with:
23+
creds: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'
24+
- name: az cli commands
25+
uses: azure/cli@v1
26+
with:
27+
azcliversion: 2.55.0
28+
inlinescript: |
29+
az account set -s "TECH-ARCHITECTS-NONPROD"
30+
az account show -o json
31+
az storage blob upload --account-name techarchitectssa --account-key ${{ secrets.ACCESS_KEY }} --container-name env-secrets --file cat.txt --name myblob
2032
- name: Completed
2133
run: |
2234
echo "program completed successfully"

0 commit comments

Comments
 (0)