Skip to content

Commit 760f83d

Browse files
committed
use new token from Digital Ocean
1 parent d6fe29d commit 760f83d

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

.github/workflows/python_compile_requirements.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,20 @@ jobs:
1515
run:
1616
shell: bash
1717
steps:
18+
- uses: actions/checkout@v4
19+
1820
- name: Install git and uv
1921
run: |
2022
apt-get update && apt-get -y install git
2123
curl -LsSf https://astral.sh/uv/install.sh | sh
2224
23-
- uses: actions/checkout@v4
25+
- name: Load Secrets
26+
uses: 1password/load-secrets-action@v1
27+
with:
28+
export-env: true
29+
env:
30+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
31+
GHP_TOKEN: "op://Data Engineering/GITHUB_TOKENS/de_repo_management"
2432

2533
- name: Compile requirements
2634
run: ./admin/ops/python_compile_requirements.sh --upgrade
@@ -34,7 +42,7 @@ jobs:
3442
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
3543
assignees: ${{ github.event_name == 'schedule' && 'fvankrieken, damonmcc, alexrichey' || '' }}
3644
branch: compile_python_reqs
37-
token: ${{ secrets.GHP_TOKEN }}
45+
token: ${{ env.GHP_TOKEN }}
3846

3947
create_issue_on_failure:
4048
needs: compile_requirements
@@ -44,10 +52,17 @@ jobs:
4452
- uses: actions/checkout@v4
4553
with:
4654
sparse-checkout: .github
55+
- name: Load Secrets
56+
uses: 1password/load-secrets-action@v1
57+
with:
58+
export-env: true
59+
env:
60+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
61+
GHP_TOKEN: "op://Data Engineering/GITHUB_TOKENS/de_repo_management"
62+
4763
- name: Create issue on failure
4864
uses: JasonEtco/create-an-issue@v2
4965
env:
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5166
ACTION: ${{ github.workflow }}
5267
BUILD_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
5368
with:

0 commit comments

Comments
 (0)