Skip to content

Commit 0695c10

Browse files
committed
ci: Remove explicit permissions since repo is public
1 parent 68e22ea commit 0695c10

2 files changed

Lines changed: 34 additions & 38 deletions

File tree

.github/workflows/single_sdk_tests.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
name: "Complement Crypto"
66
run-name: "Running Complement-Crypto"
77

8-
permissions:
9-
contents: read
10-
actions: read
8+
permissions: {}
119

1210
on:
1311
workflow_call:

.github/workflows/tests.yaml

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Tests
22

3-
permissions:
4-
contents: read
5-
actions: read
3+
permissions: {}
64

75
on:
86
push:
@@ -87,38 +85,38 @@ jobs:
8785
docker tag ghcr.io/matrix-org/synapse-service:v1.117.0 homeserver:latest
8886
8987
# Build homeserver image, honouring branch names
90-
#- name: "Checkout corresponding Synapse branch"
91-
#shell: bash
92-
#run: |
93-
#mkdir -p homeserver
94-
#
95-
## Attempt to use the version of the homeserver which best matches the
96-
## current build.
97-
##
98-
## 1. If we are not on complement's default branch, check if there's a
99-
## similarly named branch (GITHUB_HEAD_REF for pull requests,
100-
## otherwise GITHUB_REF).
101-
## 2. otherwise, use the default homeserver branch ("HEAD")
102-
#
103-
#for BRANCH_NAME in "$GITHUB_HEAD_REF" "${GITHUB_REF#refs/heads/}" "HEAD"; do
104-
## Skip empty branch names, merge commits, and our default branch.
105-
## (If we are on complement's default branch, we want to fall through to the HS's default branch
106-
## rather than using the HS's 'master'/'main').
107-
#case "$BRANCH_NAME" in
108-
#"" | refs/pull/* | main | master)
109-
#continue
110-
#;;
111-
#esac
112-
#(wget -O - "https://github.com/matrix-org/synapse/archive/$BRANCH_NAME.tar.gz" | tar -xz --strip-components=1 -C homeserver) && break
113-
#done
114-
## Build the base Synapse dockerfile and then build a Complement-specific image from that base.
115-
#- run: |
116-
#docker build -t matrixdotorg/synapse:latest -f docker/Dockerfile .
117-
#docker build -t matrixdotorg/synapse-workers:latest -f docker/Dockerfile-workers .
118-
#docker build -t homeserver -f docker/complement/Dockerfile docker/complement
119-
#working-directory: homeserver
120-
#env:
121-
#DOCKER_BUILDKIT: 1
88+
#- name: "Checkout corresponding Synapse branch"
89+
#shell: bash
90+
#run: |
91+
#mkdir -p homeserver
92+
#
93+
## Attempt to use the version of the homeserver which best matches the
94+
## current build.
95+
##
96+
## 1. If we are not on complement's default branch, check if there's a
97+
## similarly named branch (GITHUB_HEAD_REF for pull requests,
98+
## otherwise GITHUB_REF).
99+
## 2. otherwise, use the default homeserver branch ("HEAD")
100+
#
101+
#for BRANCH_NAME in "$GITHUB_HEAD_REF" "${GITHUB_REF#refs/heads/}" "HEAD"; do
102+
## Skip empty branch names, merge commits, and our default branch.
103+
## (If we are on complement's default branch, we want to fall through to the HS's default branch
104+
## rather than using the HS's 'master'/'main').
105+
#case "$BRANCH_NAME" in
106+
#"" | refs/pull/* | main | master)
107+
#continue
108+
#;;
109+
#esac
110+
#(wget -O - "https://github.com/matrix-org/synapse/archive/$BRANCH_NAME.tar.gz" | tar -xz --strip-components=1 -C homeserver) && break
111+
#done
112+
## Build the base Synapse dockerfile and then build a Complement-specific image from that base.
113+
#- run: |
114+
#docker build -t matrixdotorg/synapse:latest -f docker/Dockerfile .
115+
#docker build -t matrixdotorg/synapse-workers:latest -f docker/Dockerfile-workers .
116+
#docker build -t homeserver -f docker/complement/Dockerfile docker/complement
117+
#working-directory: homeserver
118+
#env:
119+
#DOCKER_BUILDKIT: 1
122120
- name: "Run Complement-Crypto unit tests"
123121
env:
124122
COMPLEMENT_BASE_IMAGE: homeserver

0 commit comments

Comments
 (0)