From 0b2e06ffbcc1c5c2ffcd10b27702728b1f895290 Mon Sep 17 00:00:00 2001 From: xbrianh <32105697+xbrianh@users.noreply.github.com> Date: Tue, 3 Sep 2024 05:35:50 +0000 Subject: [PATCH] try azure federated identity with actions env --- .github/workflows/cicd.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 6761c4d..654d2dc 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -14,6 +14,8 @@ on: jobs: test: runs-on: ubuntu-latest + environment: + name: xdlake strategy: fail-fast: false matrix: @@ -53,6 +55,8 @@ jobs: runs-on: ubuntu-latest name: Build dist packages needs: test + environment: + name: xdlake steps: - uses: actions/checkout@v4 - name: Set up Python @@ -79,7 +83,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes needs: build environment: - name: pypi + name: xdlake url: https://pypi.org/p/xdlake permissions: id-token: write # IMPORTANT: mandatory for trusted publishing