diff --git a/.github/workflows/python_compile_requirements.yml b/.github/workflows/python_compile_requirements.yml index d8c022a112..58374df4bc 100644 --- a/.github/workflows/python_compile_requirements.yml +++ b/.github/workflows/python_compile_requirements.yml @@ -15,12 +15,20 @@ jobs: run: shell: bash steps: + - uses: actions/checkout@v4 + - name: Install git and uv run: | apt-get update && apt-get -y install git curl -LsSf https://astral.sh/uv/install.sh | sh - - uses: actions/checkout@v4 + - name: Load Secrets + uses: 1password/load-secrets-action@v1 + with: + export-env: true + env: + OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} + GHP_TOKEN: "op://Data Engineering/GITHUB_TOKENS/de_repo_management" - name: Compile requirements run: ./admin/ops/python_compile_requirements.sh --upgrade @@ -34,7 +42,7 @@ jobs: author: github-actions[bot] assignees: ${{ github.event_name == 'schedule' && 'fvankrieken, damonmcc, alexrichey' || '' }} branch: compile_python_reqs - token: ${{ secrets.GHP_TOKEN }} + token: ${{ env.GHP_TOKEN }} create_issue_on_failure: needs: compile_requirements @@ -44,10 +52,17 @@ jobs: - uses: actions/checkout@v4 with: sparse-checkout: .github + - name: Load Secrets + uses: 1password/load-secrets-action@v1 + with: + export-env: true + env: + OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} + GHP_TOKEN: "op://Data Engineering/GITHUB_TOKENS/de_repo_management" + - name: Create issue on failure uses: JasonEtco/create-an-issue@v2 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ACTION: ${{ github.workflow }} BUILD_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} with: