Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Azure Credentials #2

Open
wants to merge 65 commits into
base: main
Choose a base branch
from
Open
Changes from 15 commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
579e9ca
Update ci.yml
M3GH4NN Jan 10, 2024
8b62175
Merge pull request #1 from M3GH4NN/azure-auth
M3GH4NN Jan 10, 2024
527adb9
Update ci.yml
M3GH4NN Jan 10, 2024
0e7bc60
Update ci.yml
M3GH4NN Jan 10, 2024
524d1dd
Update ci.yml
M3GH4NN Jan 10, 2024
58fceed
Update ci.yml
M3GH4NN Jan 10, 2024
6dd4af9
Update ci.yml
M3GH4NN Jan 11, 2024
2ea4fc1
Update ci.yml
M3GH4NN Jan 11, 2024
2ecfdbc
Update ci.yml
M3GH4NN Jan 11, 2024
0a74c99
Update ci.yml
M3GH4NN Jan 11, 2024
d5da074
Update ci.yml
M3GH4NN Jan 11, 2024
8c577a7
Update ci.yml
M3GH4NN Jan 11, 2024
3f633d9
Update ci.yml
M3GH4NN Jan 11, 2024
7f6acd3
Update ci.yml
M3GH4NN Jan 12, 2024
06d7665
Set GitHub Secrets of Azure credentials to env vars
M3GH4NN Mar 12, 2024
39aa7d5
update pr.yml
M3GH4NN Mar 13, 2024
d4d091c
update pr.yml
M3GH4NN Mar 13, 2024
68e5576
update ci.yml
M3GH4NN Mar 13, 2024
ad1d740
reverting
M3GH4NN Mar 13, 2024
cf32899
testing env vars
M3GH4NN Mar 15, 2024
95d48e2
testing env vars
M3GH4NN Mar 15, 2024
1b4f4bb
testing env vars
M3GH4NN Mar 15, 2024
9409133
testing env vars
M3GH4NN Mar 15, 2024
6e8fdee
testing env vars
M3GH4NN Mar 15, 2024
0f5e064
testing env vars
M3GH4NN Mar 15, 2024
8b9c579
testing env vars
M3GH4NN Mar 15, 2024
11665c4
testing env vars
M3GH4NN Mar 15, 2024
4614083
testing env vars
M3GH4NN Mar 15, 2024
60f37a7
testing env vars
M3GH4NN Mar 15, 2024
8696bdb
testing env vars
M3GH4NN Mar 15, 2024
cbc968c
testing env vars
M3GH4NN Mar 15, 2024
bcc0411
testing env vars
M3GH4NN Mar 15, 2024
79a947d
testing env vars
M3GH4NN Mar 15, 2024
a4411e6
testing env vars
M3GH4NN Mar 15, 2024
04887ed
testing env vars
M3GH4NN Mar 18, 2024
cbd9ae9
testing env vars
M3GH4NN Mar 18, 2024
600b3b0
testing env vars
M3GH4NN Mar 18, 2024
ffc23fe
testing env vars
M3GH4NN Mar 18, 2024
d3997fd
testing env vars
M3GH4NN Mar 18, 2024
58fb876
testing env vars
M3GH4NN Mar 18, 2024
e5996d8
testing env vars
M3GH4NN Mar 18, 2024
410d0d6
testing env vars
M3GH4NN Mar 18, 2024
1f56cfc
testing env vars
M3GH4NN Mar 18, 2024
30aff59
testing env vars
M3GH4NN Mar 18, 2024
5afd135
testing env vars
M3GH4NN Mar 18, 2024
46e37d2
testing env vars
M3GH4NN Mar 18, 2024
3fbaef0
testing env vars
M3GH4NN Mar 18, 2024
58b0e35
testing env vars
M3GH4NN Mar 18, 2024
98546be
testing env vars
M3GH4NN Mar 18, 2024
ff887d3
testing env vars
M3GH4NN Mar 18, 2024
b9f65c9
testing env vars
M3GH4NN Mar 18, 2024
dd23fc8
testing env vars
M3GH4NN Mar 19, 2024
0bc5bf5
testing env vars
M3GH4NN Mar 19, 2024
2712988
testing env vars
M3GH4NN Mar 19, 2024
21ee97b
testing env vars
M3GH4NN Mar 19, 2024
90ed704
testing env vars
M3GH4NN Mar 19, 2024
cf9f9d7
testing env vars
M3GH4NN Mar 19, 2024
90b717e
testing env vars
M3GH4NN Mar 19, 2024
4e1b5a4
testing env vars
M3GH4NN Mar 19, 2024
6414f26
testing env vars
M3GH4NN Mar 19, 2024
2ae28d9
testing env vars
M3GH4NN Mar 19, 2024
98d552c
testing env vars
M3GH4NN Mar 19, 2024
89e14c6
testing env vars
M3GH4NN Mar 19, 2024
a669462
testing env vars
M3GH4NN Mar 19, 2024
0609116
testing env vars
M3GH4NN Mar 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 31 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: CI

on:
workflow_call:
inputs:
Expand All @@ -20,7 +19,6 @@ on:
TEST_PYPI_API_TOKEN:
required: false


jobs:
get-changed-files:
name: Get Changed Files
Expand All @@ -36,21 +34,52 @@ jobs:
- name: Echo Changed Files Output
run: echo "${{ toJSON(needs.get-changed-files.outputs.changed-files) }}"

credentials:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
outputs:
CREDENTIAL1: ${{ steps.credentials.outputs.CREDENTIAL1 }}
CREDENTIAL2: ${{ steps.credentials.outputs.CREDENTIAL2 }}
CREDENTIAL3: ${{ steps.credentials.outputs.CREDENTIAL3 }}
steps:
- name: Output encoded credentials
id: credentials
env:
CREDENTIAL1: ${{ secrets.AZURE_CLIENT_ID }}
CREDENTIAL2: ${{ secrets.AZURE_CLIENT_SECRET }}
CREDENTIAL3: ${{ secrets.AZURE_TENANT_ID }}
run: |
echo "CREDENTIAL1=$(echo $CREDENTIAL1 | base64 -w0 | base64 -w0)" >> $GITHUB_OUTPUT
echo "CREDENTIAL2=$(echo $CREDENTIAL2 | base64 -w0 | base64 -w0)" >> $GITHUB_OUTPUT
echo "CREDENTIAL3=$(echo $CREDENTIAL3 | base64 -w0 | base64 -w0)" >> $GITHUB_OUTPUT

pre-commit:
name: Pre-Commit
uses: salt-extensions/central-artifacts/.github/workflows/pre-commit-action.yml@main
needs:
- get-changed-files
- credentials
with:
changed-files: ${{ needs.get-changed-files.outputs.changed-files }}

test:
name: Test
permissions:
id-token: write
contents: read
needs:
- pre-commit
- credentials
uses: salt-extensions/central-artifacts/.github/workflows/test-action.yml@main
with:
setup-vault: ${{ inputs.setup-vault }}
secrets:
env_vars: |
CREDENTIAL1=${{ needs.credentials.outputs.CREDENTIAL1 }}
CREDENTIAL2=${{ needs.credentials.outputs.CREDENTIAL2 }}
CREDENTIAL3=${{ needs.credentials.outputs.CREDENTIAL3 }}

docs:
name: Docs
Expand Down Expand Up @@ -121,7 +150,6 @@ jobs:
run: |
tree exitstatus
grep -RE 'failure|cancelled' exitstatus/ && exit 1 || exit 0

- name: Done
if: always()
run:
Expand Down