Skip to content

Commit 2b763dc

Browse files
Merge pull request #60 from moj-analytical-services/test/octo-sts
Signed-off-by: Jacob Woffenden <[email protected]>
2 parents 662fbeb + 516f0ac commit 2b763dc

File tree

6 files changed

+29
-4
lines changed

6 files changed

+29
-4
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[
2+
{
3+
"scope": "moj-analytical-services/octo-sts-1",
4+
"identity": "analytical-platform-python-uv-example",
5+
"branch": "main"
6+
},
7+
{
8+
"scope": "moj-analytical-services/octo-sts-2",
9+
"identity": "analytical-platform-python-uv-example",
10+
"branch": "main"
11+
},
12+
{
13+
"scope": "ministryofjustice/octo-sts-test",
14+
"identity": "moj-analytical-services-analytical-platform-python-uv-example",
15+
"branch": "main"
16+
}
17+
]

.github/workflows/release-container.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
permissions:
1414
contents: read
1515
id-token: write
16-
uses: ministryofjustice/analytical-platform-airflow-github-actions/.github/workflows/shared-release-container.yml@2535a999924998baeb46c740720a61523ca8efa9 # v1.11.0
16+
uses: ministryofjustice/analytical-platform-airflow-github-actions/.github/workflows/shared-release-container.yml@fe80a7bd4ad022fb14e50b94637baef2e564013c # v2.0.0

.github/workflows/scan-container.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
scan-container:
1313
permissions:
1414
contents: read
15+
id-token: write
1516
pull-requests: write
16-
uses: ministryofjustice/analytical-platform-airflow-github-actions/.github/workflows/shared-scan-container.yml@2535a999924998baeb46c740720a61523ca8efa9 # v1.11.0
17+
uses: ministryofjustice/analytical-platform-airflow-github-actions/.github/workflows/shared-scan-container.yml@fe80a7bd4ad022fb14e50b94637baef2e564013c # v2.0.0
1718
with:
1819
runtime: python

.github/workflows/test-container.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ jobs:
1212
test-container:
1313
permissions:
1414
contents: read
15+
id-token: write
1516
pull-requests: write
16-
uses: ministryofjustice/analytical-platform-airflow-github-actions/.github/workflows/shared-test-container.yml@2535a999924998baeb46c740720a61523ca8efa9 # v1.11.0
17+
uses: ministryofjustice/analytical-platform-airflow-github-actions/.github/workflows/shared-test-container.yml@fe80a7bd4ad022fb14e50b94637baef2e564013c # v2.0.0

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,18 @@ jobs:
1414
runs-on: ubuntu-latest
1515
permissions:
1616
contents: read
17+
id-token: write
1718
steps:
1819
- name: Checkout
1920
id: checkout
2021
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2122
with:
2223
persist-credentials: false
2324

25+
- name: Octo STS
26+
id: octo_sts
27+
uses: ministryofjustice/analytical-platform-github-actions/octo-sts@8b6e720fdc9ecc1fd16342f88d84496ebdd6b244 # v3.0.0
28+
2429
- name: Build
2530
id: build
2631
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ FROM ghcr.io/ministryofjustice/analytical-platform-airflow-python-base:1.14.0@sh
44
ENV UV_COMPILE_BYTECODE=1
55

66
COPY src/ .
7+
# COPY moj-analytical-services/octo-sts-1 octo-sts-1
78

89
RUN --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
910
--mount=type=bind,source=uv.lock,target=uv.lock \
1011
<<EOF
11-
uv sync --frozen --no-dev --no-editable --no-install-project
12+
uv sync --frozen --no-dev --no-editable --no-install-project
1213
EOF
1314

1415
ENTRYPOINT ["uv", "run", "main.py"]

0 commit comments

Comments
 (0)