name: Security # on every push and pull request, and once a week for newly published CodeQL # queries: # - invariants: what the 2026-10-16 security audit found true stays true # (no npm packages, no program starts or eval in the server, no unlisted # web addresses in the server or in the SWFs players load, no keys, all # JavaScript parses). see .github/scripts/. # - secrets: TruffleHog over the commits pushed # - codeql: GitHub's code scanning of the JavaScript and of these workflows on: push: pull_request: schedule: - cron: "17 4 * * 1" workflow_dispatch: permissions: contents: read jobs: invariants: runs-on: ubuntu-latest timeout-minutes: 15 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: persist-credentials: false - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: node-version: 22 - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: python-version: "3.12" - name: Server code run: node .github/scripts/invariants.js - name: Game files players load run: git ls-files -z 'swf/*.swf' | xargs -0 python3 -I .github/scripts/swf-hosts.py secrets: runs-on: ubuntu-latest timeout-minutes: 15 steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 persist-credentials: false - uses: trufflesecurity/trufflehog@4dd8831c5f12599465d4d45c3c447b4018a34c85 # v3.97.9 with: version: 3.97.9 extra_args: --results=verified,unknown codeql: runs-on: ubuntu-latest timeout-minutes: 30 permissions: contents: read security-events: write actions: read strategy: fail-fast: false matrix: language: [javascript-typescript, actions] steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: persist-credentials: false - uses: github/codeql-action/init@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2 with: languages: ${{ matrix.language }} queries: security-extended config: | paths-ignore: - tools/decompiled - swf-src - uses: github/codeql-action/analyze@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2 with: category: /language:${{ matrix.language }}