From 13cf0c4b550e6a70fae218a7af6d98c7c4ec8564 Mon Sep 17 00:00:00 2001 From: Thomas Patzke Date: Sun, 3 Sep 2023 01:42:17 +0200 Subject: [PATCH] Release OIDC authentication --- .github/workflows/release.yml | 16 ++++++++-------- pyproject.toml | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 07e3baf..e8a59a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,9 @@ on: jobs: build-and-publish: runs-on: ubuntu-20.04 + environment: release + permissions: + id-token: write steps: - uses: actions/checkout@v2 - name: Install Poetry @@ -16,7 +19,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: '3.10' + python-version: '3.11' - name: Verify versioning run: | [ "$(poetry version -s)" == "${GITHUB_REF#refs/tags/v}" ] @@ -26,14 +29,11 @@ jobs: run: poetry run pytest - name: Build packages run: poetry build - - name: Configure Poetry - run: | - poetry config repositories.testpypi https://test.pypi.org/legacy/ - poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_API_TOKEN }} - poetry config pypi-token.pypi "${{ secrets.PYPI_API_TOKEN }}" - name: Publish to test PyPI if: ${{ github.event_name == 'push' }} - run: poetry publish -r testpypi + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ - name: Publish to PyPI if: ${{ github.event_name == 'release' }} - run: poetry publish \ No newline at end of file + uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index ea6a4dc..428a752 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,7 @@ name = "pysigma-backend-splunk" version = "1.0.3" description = "pySigma Splunk backend" +readme = "README.md" authors = ["Thomas Patzke "] license = "LGPL-2.1-only" repository = "https://github.com/SigmaHQ/pySigma-backend-splunk"