Skip to content

Commit cf9e6ed

Browse files
Merge pull request #1 from microsoft/main
Latest pull from original TRE repo
2 parents 3196089 + ddddbf6 commit cf9e6ed

34 files changed

Lines changed: 951 additions & 766 deletions

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ RUN apt-get update && apt-get install -y ca-certificates curl gnupg lsb-release
3737
&& curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg \
3838
&& echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" \
3939
| tee /etc/apt/sources.list.d/docker.list > /dev/null \
40-
&& apt-get update && apt-get install -y docker-ce="5:23.0.3-1~debian.11~bullseye" docker-ce-cli="5:23.0.3-1~debian.11~bullseye" containerd.io="1.6.20-1" docker-buildx-plugin --no-install-recommends \
40+
&& apt-get update && apt-get install -y docker-ce="5:24.0.0-1~debian.11~bullseye" docker-ce-cli="5:24.0.0-1~debian.11~bullseye" docker-compose-plugin="2.21.0-1~debian.11~bullseye" containerd.io="1.6.24-1" docker-buildx-plugin --no-install-recommends \
4141
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*
4242

4343
# Install Certbot
@@ -75,7 +75,7 @@ COPY ["airlock_processor/requirements.txt", "/tmp/pip-tmp/airlock_processor/"]
7575
RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt
7676

7777
# Install azure-cli
78-
ARG AZURE_CLI_VERSION=2.50.0-1~bullseye
78+
ARG AZURE_CLI_VERSION=2.57.0-1~bullseye
7979
COPY .devcontainer/scripts/azure-cli.sh /tmp/
8080
RUN export AZURE_CLI_VERSION=${AZURE_CLI_VERSION} \
8181
&& /tmp/azure-cli.sh

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,12 @@ updates:
5555
- dependency-name: "*"
5656
update-types: ["version-update:semver-patch"]
5757
open-pull-requests-limit: 0
58+
59+
- package-ecosystem: "docker"
60+
directory: "/"
61+
schedule:
62+
interval: "monthly"
63+
ignore:
64+
- dependency-name: "*"
65+
update-types: ["version-update:semver-patch"]
66+
open-pull-requests-limit: 0

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ jobs:
4242

4343
steps:
4444
- name: Checkout repository
45-
uses: actions/checkout@v3
45+
uses: actions/checkout@v4
4646
with:
4747
persist-credentials: false
4848

4949
- name: Initialize CodeQL
50-
uses: github/codeql-action/init@v2
50+
uses: github/codeql-action/init@v3
5151
with:
5252
languages: ${{ matrix.language }}
5353

@@ -57,6 +57,6 @@ jobs:
5757
run: mvn package
5858

5959
- name: Perform CodeQL Analysis
60-
uses: github/codeql-action/analyze@v2
60+
uses: github/codeql-action/analyze@v3
6161
with:
6262
category: "/language:${{matrix.language}}"

.github/workflows/deploy_tre.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
name: "Deploy main"
2727
if: github.ref == 'refs/heads/main'
2828
uses: ./.github/workflows/deploy_tre_reusable.yml
29+
permissions:
30+
checks: write
31+
contents: read
32+
pull-requests: write
2933
with:
3034
ciGitRef: ${{ github.ref }}
3135
e2eTestsCustomSelector: >-

.github/workflows/deploy_tre_branch.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ jobs:
5858
if: ${{ github.ref != 'refs/heads/main' }}
5959
needs: [prepare-not-main]
6060
uses: ./.github/workflows/deploy_tre_reusable.yml
61+
permissions:
62+
checks: write
63+
contents: read
64+
pull-requests: write
6165
with:
6266
ciGitRef: ${{ github.ref }}
6367
prHeadSha: ${{ github.sha }}

.github/workflows/deploy_tre_reusable.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ jobs:
9999
deploy_management:
100100
name: Deploy Management
101101
runs-on: ubuntu-latest
102+
permissions:
103+
checks: write
104+
contents: read
102105
environment: ${{ inputs.environmentName }}
103106
steps:
104107
- name: Show inputs
@@ -173,7 +176,7 @@ jobs:
173176
174177
- name: Report check status start
175178
if: inputs.prHeadSha != ''
176-
uses: LouisBrunner/checks-action@v1.6.0
179+
uses: LouisBrunner/checks-action@v2.0.0
177180
with:
178181
token: ${{ secrets.GITHUB_TOKEN }}
179182
sha: ${{ inputs.prHeadSha }}
@@ -250,10 +253,10 @@ jobs:
250253
run: |
251254
# shellcheck disable=SC2034,SC2015,SC2125
252255
for i in {1..3}; do
253-
az acr login --name "${{ secrets.CI_CACHE_ACR_NAME }}" && ec=0 && break || ec=\$? && sleep 10
256+
az acr login --name "${{ secrets.CI_CACHE_ACR_NAME }}" && ec=0 && break || ec="$?" && sleep 10
254257
done
255258
# shellcheck disable=SC2242
256-
(exit \$ec)
259+
(exit "$ec")
257260
258261
- name: Push cached devcontainer
259262
run: docker image push ${{ env.CI_CACHE_ACR_URI }}/tredev:${{ inputs.DEVCONTAINER_TAG }}
@@ -382,8 +385,6 @@ jobs:
382385
BUNDLE_DIR: "./templates/workspace_services/guacamole"}
383386
- {BUNDLE_TYPE: "workspace_service",
384387
BUNDLE_DIR: "./templates/workspace_services/azureml"}
385-
- {BUNDLE_TYPE: "workspace_service",
386-
BUNDLE_DIR: "./templates/workspace_services/innereye"}
387388
- {BUNDLE_TYPE: "workspace_service",
388389
BUNDLE_DIR: "./templates/workspace_services/gitea"}
389390
- {BUNDLE_TYPE: "workspace_service",
@@ -543,8 +544,6 @@ jobs:
543544
BUNDLE_DIR: "./templates/workspace_services/guacamole"}
544545
- {BUNDLE_TYPE: "workspace_service",
545546
BUNDLE_DIR: "./templates/workspace_services/azureml"}
546-
- {BUNDLE_TYPE: "workspace_service",
547-
BUNDLE_DIR: "./templates/workspace_services/innereye"}
548547
- {BUNDLE_TYPE: "workspace_service",
549548
BUNDLE_DIR: "./templates/workspace_services/gitea"}
550549
- {BUNDLE_TYPE: "workspace_service",
@@ -806,6 +805,9 @@ jobs:
806805
name: Summary
807806
needs: [e2e_tests_smoke, e2e_tests_custom]
808807
runs-on: ubuntu-latest
808+
permissions:
809+
checks: write
810+
contents: read
809811
if: always()
810812
environment: ${{ inputs.environmentName }}
811813
steps:
@@ -816,7 +818,7 @@ jobs:
816818
# If prHeadSha is specified then explicity mark the checks for that SHA
817819
- name: Report check status
818820
if: inputs.prHeadSha != ''
819-
uses: LouisBrunner/checks-action@v1.6.0
821+
uses: LouisBrunner/checks-action@v2.0.0
820822
with:
821823
token: ${{ secrets.GITHUB_TOKEN }}
822824
# the name must be identical to the one received by the real job

.github/workflows/flag_external_pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
check_author:
1111
name: Check PR author
1212
runs-on: ubuntu-latest
13+
permissions:
14+
pull-requests: write
1315
steps:
1416
# Ensure we have the script file for the github-script action to use
1517
- name: Checkout

.github/workflows/pr_comment_bot.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
# - the commenting user has write permissions (i.e. is OWNER or COLLABORATOR)
1919
if: ${{ github.event.issue.pull_request }}
2020
runs-on: ubuntu-latest
21+
permissions:
22+
pull-requests: write
23+
checks: write
24+
contents: read
2125
outputs:
2226
command: ${{ steps.check_command.outputs.command }}
2327
prRef: ${{ steps.check_command.outputs.prRef }}
@@ -55,7 +59,7 @@ jobs:
5559
# and will have to send it "manually"
5660
- name: Bypass E2E check-runs status
5761
if: ${{ steps.check_command.outputs.command == 'test-force-approve' }}
58-
uses: LouisBrunner/checks-action@v1.6.0
62+
uses: LouisBrunner/checks-action@v2.0.0
5963
with:
6064
token: ${{ secrets.GITHUB_TOKEN }}
6165
# the name must be identical to the one received by the real job
@@ -68,6 +72,8 @@ jobs:
6872
needs: [pr_comment]
6973
if: ${{ needs.pr_comment.outputs.command == 'test-destroy-env' }}
7074
runs-on: ubuntu-latest
75+
permissions:
76+
pull-requests: write
7177
environment: CICD
7278
name: Destroy PR env
7379
steps:
@@ -102,6 +108,8 @@ jobs:
102108
needs: [pr_comment]
103109
if: ${{ needs.pr_comment.outputs.command == 'test-destroy-env' && needs.pr_comment.outputs.branchRefId != '' }}
104110
runs-on: ubuntu-latest
111+
permissions:
112+
pull-requests: write
105113
environment: CICD
106114
name: Destroy branch env
107115
steps:
@@ -142,6 +150,10 @@ jobs:
142150
needs.pr_comment.outputs.command == 'run-tests-shared-services'
143151
name: Deploy PR
144152
uses: ./.github/workflows/deploy_tre_reusable.yml
153+
permissions:
154+
checks: write
155+
contents: read
156+
pull-requests: write
145157
with:
146158
prRef: ${{ needs.pr_comment.outputs.prRef }}
147159
prHeadSha: ${{ needs.pr_comment.outputs.prHeadSha }}

.github/workflows/test_results.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,18 @@ jobs:
5959
Check the artifacts for details."
6060
exit 1
6161
fi
62+
63+
# For PR builds triggered from comment builds, the GITHUB_REF is set to main
64+
# so the checks aren't automatically associated with the PR
65+
# If prHeadSha is specified then explicity mark the checks for that SHA
66+
- name: Report check status
67+
if: github.event.workflow_run.head_sha != ''
68+
uses: LouisBrunner/checks-action@v2.0.0
69+
with:
70+
token: ${{ secrets.GITHUB_TOKEN }}
71+
# the name must be identical to the one received by the real job
72+
sha: ${{ github.event.workflow_run.head_sha }}
73+
name: "Test Results"
74+
status: "completed"
75+
conclusion: ${{ github.event.workflow_run.conclusion }}
76+
details_url: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ BUG FIXES:
1616
* Fix issue with workspace menu not working correctly([#3819](https://github.com/microsoft/AzureTRE/issues/3819))
1717
* Fix issue with connect button showing when no uri([#3820](https://github.com/microsoft/AzureTRE/issues/3820))
1818
* Fix user resource upgrade validation: use the parent_service_template_name instead of the parent_resource_id. ([#3824](https://github.com/microsoft/AzureTRE/issues/3824))
19+
* Airlock: Creating an import/export request causes a routing error ([#3830](https://github.com/microsoft/AzureTRE/issues/3830))
20+
* Fix registration of templates with no 'authorizedRoles' or 'required' defined ([#3849](https://github.com/microsoft/AzureTRE/pull/3849))
21+
* Update terraform for services bus to move network rules into namespace resource to avoid depreciation warning, and update setup_local_debugging.sh to use network_rule_sets ([#3858](https://github.com/microsoft/AzureTRE/pull/3858))
1922

2023
COMPONENTS:
2124

0 commit comments

Comments
 (0)