Skip to content

fix: strip debug output from API responses and JS console logs #10

fix: strip debug output from API responses and JS console logs

fix: strip debug output from API responses and JS console logs #10

Workflow file for this run

name: CI - Redis lock
on:
push:
paths-ignore:
- 'webdocs/**'
- 'res/**'
pull_request:
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
env:
NAME: ctfer
PASSWORD: ctfer
services:
chall-manager:
image: ctferio/chall-manager:v0.4.3@sha256:786ff5ad78a52fab78b25c75957d0f2f46790647321f3d1863c97f12768092fc
ports:
- 8080:8080
redis-svc:
image: redis:7.0.10@sha256:92b8b307ee28ed74da17578064c73307ad41e43f422f0b7e4e91498b406c59e3
ports:
- 6379:6379
ctfd:
image: ctfd/ctfd:3.7.7@sha256:9847758cdafc5ab86bdc121353dcf5a27a29ce313587270ee90a71bfbda2b910
ports:
- 8000:8000
options: --mount type=bind,source=${{ github.workspace }},target=/opt/CTFd/CTFd/plugins/ctfd-chall-manager
env:
LOG_LEVEL: DEBUG
PLUGIN_SETTINGS_CM_API_URL: http://chall-manager:8080/api/v1
PLUGIN_SETTINGS_CM_MANA_TOTAL: 10
REDIS_URL: redis://redis-svc:6379
WORKERS: 2
SECRET_KEY: ctfer
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup basic testing env
uses: ./.github/workflows/setup-testing
with:
ctfd_mode: teams
ctfd_user: ${{ env.NAME }}
ctfd_pass: ${{ env.PASSWORD }}
- name: Setup Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
- name: Run Functional Tests in mode Teams
run: |-
python -m unittest test/test_api_challenges.py
python -m unittest test/test_api_admin_instance.py
python -m unittest test/test_api_instance.py
python -m unittest test/test_api_mana.py
env:
CTFD_URL: http://localhost:8000
- name: Update CTFd into mode users
uses: ctfer-io/ctfd-setup@e11df98977827a789d3e07537790a3b64091493b # v1.6.0
with:
url: 'http://ctfd:8000'
appearance_name: CTFer.io
appearance_description: CTFer.io plugin tests
mode: users
admin_name: ${{ env.NAME }}
admin_email: ctfer-io@protonmail.com
admin_password: ${{ env.PASSWORD }}
- name: Run Functional Tests in mode Users
run: |-
python -m unittest test/test_api_challenges.py
python -m unittest test/test_api_admin_instance.py
python -m unittest test/test_api_instance.py
python -m unittest test/test_api_mana.py
env:
CTFD_URL: http://localhost:8000