Skip to content

Commit e90eb6b

Browse files
authored
feat: define GH_PAT and GH_USERNAME to pull internal images (#99)
2 parents e54e15b + e05e85f commit e90eb6b

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/_charm-tests-integration.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ on:
3131
description: Run integration tests with tmate debugging enabled
3232
required: false
3333
default: false
34+
secrets:
35+
GH_USERNAME:
36+
required: false
37+
GH_PAT:
38+
required: false
3439

3540
jobs:
3641
build:
@@ -87,6 +92,9 @@ jobs:
8792
name: ${{ github.sha }}-build
8893

8994
- name: Run integration tests
95+
env:
96+
GH_USERNAME: ${{ secrets.GH_USERNAME }}
97+
GH_PAT: ${{ secrets.GH_PAT }}
9098
run: tox -e ${{ inputs.tox-integration-test-targets }} -- --model testing
9199

92100
- name: Get contexts

.github/workflows/charm-pull-request.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ on:
3939
secrets:
4040
CHARMCRAFT_CREDENTIALS:
4141
required: false
42+
GH_USERNAME:
43+
required: false
44+
GH_PAT:
45+
required: false
4246

4347
jobs:
4448
linting:
@@ -56,6 +60,9 @@ jobs:
5660
integration-test:
5761
name: Integration Tests
5862
uses: ./.github/workflows/_charm-tests-integration.yaml
63+
secrets:
64+
GH_USERNAME: ${{ secrets.GH_USERNAME }}
65+
GH_PAT: ${{ secrets.GH_PAT }}
5966
with:
6067
container-name: ${{ inputs.container-name }}
6168
charm-config-path: ${{ inputs.charm-config-path }}

0 commit comments

Comments
 (0)