Skip to content

Commit 59b68d1

Browse files
committed
refactor: do not scw action to pass secrets
1 parent 669fbbd commit 59b68d1

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

.github/workflows/integration-gateway.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,19 @@ on:
1111
permissions:
1212
contents: read
1313

14+
env:
15+
SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
16+
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
17+
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
18+
SCW_DEFAULT_PROJECT_ID: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
19+
1420
jobs:
1521
setup-gateway:
1622
runs-on: self-hosted
1723
container: python:3.11-bookworm
1824
steps:
1925
- uses: actions/checkout@v3
2026

21-
- uses: scaleway/action-scw@v0.0.1
22-
with:
23-
access-key: ${{ secrets.SCW_ACCESS_KEY }}
24-
secret-key: ${{ secrets.SCW_SECRET_KEY }}
25-
default-project-id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
26-
default-organization-id: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
27-
2827
- uses: ./.github/actions/setup-poetry
2928

3029
- name: Create gateway database
@@ -50,13 +49,6 @@ jobs:
5049
steps:
5150
- uses: actions/checkout@v3
5251

53-
- uses: ./.github/actions/setup-cli
54-
with:
55-
access-key: ${{ secrets.SCW_ACCESS_KEY }}
56-
secret-key: ${{ secrets.SCW_SECRET_KEY }}
57-
project-id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
58-
organization-id: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
59-
6052
- uses: ./.github/actions/setup-poetry
6153

6254
- name: Run integration tests
@@ -76,13 +68,6 @@ jobs:
7668
steps:
7769
- uses: actions/checkout@v3
7870

79-
- uses: ./.github/actions/setup-cli
80-
with:
81-
access-key: ${{ secrets.SCW_ACCESS_KEY }}
82-
secret-key: ${{ secrets.SCW_SECRET_KEY }}
83-
project-id: ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
84-
organization-id: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
85-
8671
- uses: ./.github/actions/setup-poetry
8772

8873
- name: Delete namespace

0 commit comments

Comments
 (0)