diff --git a/repo_scaffold/templates/template-python/{{cookiecutter.project_slug}}/.github/workflows/bump_version.yaml b/repo_scaffold/templates/template-python/{{cookiecutter.project_slug}}/.github/workflows/bump_version.yaml index e96ded6..f583732 100644 --- a/repo_scaffold/templates/template-python/{{cookiecutter.project_slug}}/.github/workflows/bump_version.yaml +++ b/repo_scaffold/templates/template-python/{{cookiecutter.project_slug}}/.github/workflows/bump_version.yaml @@ -5,7 +5,6 @@ on: branches: - master - main - workflow_dispatch: inputs: increment: @@ -28,15 +27,22 @@ jobs: runs-on: ubuntu-latest name: "Bump version and create changelog with commitizen" steps: + - name: Load secret + uses: 1password/load-secrets-action@v2 + with: + export-env: true + env: + OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} + PERSONAL_ACCESS_TOKEN: op://shawndengdev/github_access_token/credential - name: Check out uses: actions/checkout@v4 with: fetch-depth: 0 - token: '${{ github.token }}' + token: '${{ env.PERSONAL_ACCESS_TOKEN }}' - name: Create bump and changelog uses: commitizen-tools/commitizen-action@master with: - github_token: '${{ github.token }}' + github_token: ${{ env.PERSONAL_ACCESS_TOKEN }} branch: master