commit de322cf39652572c667215562301b05cdf48a496
parent 53f7a67ba2b47a87914817d91940bf4467e88bdd
Author: MTRNord <mtrnord1@gmail.com>
Date: Tue, 30 Aug 2022 21:08:49 +0200
Fix errors while running
Diffstat:
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/test_known.yml b/.github/workflows/test_known.yml
@@ -48,14 +48,14 @@ jobs:
steps:
- uses: actions/checkout@v3
- - name: Login get_nonce
- id: get_nonce
- run: echo "::set-output nonce=$(curl http://localhost:8008/_synapse/admin/v1/register | jq -r .nonce)"
- - name: Install python3
+ - name: Install deps
run: |
apt-get update
- apt-get install -y python3
+ apt-get install -y python3 jq curl
apt-get clean
+ - name: Login get_nonce
+ id: get_nonce
+ run: echo "::set-output nonce=$(curl http://localhost:8008/_synapse/admin/v1/register | jq -r .nonce)"
- name: Generate mac
id: generate_mac
run: python3 ./dockerfiles/synapse_generate_login.py
diff --git a/dockerfiles/synapse_generate_login.py b/dockerfiles/synapse_generate_login.py
@@ -5,7 +5,7 @@ import os
def generate_mac(nonce, user, password, admin=False, user_type=None):
mac = hmac.new(
- key="sahZae3yahjaequ8boh2cae5uo5eiciede2hoa9eew8mai1oy4iiChietheequ9U",
+ key=b"sahZae3yahjaequ8boh2cae5uo5eiciede2hoa9eew8mai1oy4iiChietheequ9U",
digestmod=hashlib.sha1,
)