Skip to content

Commit

Permalink
fix: Increase JWT key size to 2048 (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi authored Jan 8, 2024
1 parent aa8f079 commit 92a0242
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright Jiaqi Liu
---
name: CI/CD

"on":
pull_request:
push:
branches:
- master

jobs:
test:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install tox and any other packages
run: |
pip3 install tox
python3 setup.py install
working-directory: package
- name: Run tox (test)
run: tox
working-directory: package
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,5 @@ ENV/

# Reports
cobertura.xml

.idea
2 changes: 1 addition & 1 deletion package/screwdriver_cd_setup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def generate_jwt():
Dictionary with public_key and private_key
"""
check_output(
['openssl', 'genrsa', '-out', 'jwt.pem', '1024'], stderr=STDOUT
['openssl', 'genrsa', '-out', 'jwt.pem', '2048'], stderr=STDOUT
)
check_output(
['openssl', 'rsa', '-in', 'jwt.pem', '-pubout', '-out', 'jwt.pub'],
Expand Down

0 comments on commit 92a0242

Please sign in to comment.