Repository navigation
tests: test on latest stable Alpine, remove version lock #115
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: 2026 Aleksandr Mezin <mezin.alexander@gmail.com> | |
| # | |
| # SPDX-License-Identifier: CC0-1.0 | |
| name: code-scan | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: '48 7 * * *' | |
| jobs: | |
| codeql: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: | |
| - javascript-typescript | |
| - actions | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0 | |
| with: | |
| languages: ${{ matrix.language }} | |
| queries: security-and-quality | |
| config: | | |
| threat-models: local | |
| - uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0 | |
| with: | |
| category: '/language:${{matrix.language}}' | |
| zizmor: | |
| runs-on: ubuntu-slim | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - working-directory: ${{ runner.temp }} | |
| run: | | |
| wget "https://github.com/zizmorcore/zizmor/releases/download/v${ZIZMOR_VERSION}/zizmor-x86_64-unknown-linux-gnu.tar.gz" | |
| echo "$ZIZMOR_SHA256 zizmor-x86_64-unknown-linux-gnu.tar.gz" | sha256sum --check --strict - | |
| mkdir zizmor | |
| tar -C zizmor -xf zizmor-x86_64-unknown-linux-gnu.tar.gz | |
| echo "$(pwd)/zizmor" >>"$GITHUB_PATH" | |
| env: | |
| # renovate: datasource=custom.github-release-assets depName=zizmor packageName="zizmor-x86_64-unknown-linux-gnu.tar.gz" registryUrl=https://api.github.com/repos/zizmorcore/zizmor/releases | |
| ZIZMOR_VERSION: '1.30.1' | |
| # renovate-digest: datasource=custom.github-release-assets depName=zizmor currentValue=1.30.1 packageName="zizmor-x86_64-unknown-linux-gnu.tar.gz" registryUrl=https://api.github.com/repos/zizmorcore/zizmor/releases | |
| ZIZMOR_SHA256: 'e65324f4430c2717591937edcec90ccbefaf14c174f8ec9415e03ca875b46e1a' | |
| - run: zizmor --format=sarif . >"$RUNNER_TEMP/results.sarif" | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| - uses: github/codeql-action/upload-sarif@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0 | |
| with: | |
| sarif_file: ${{ runner.temp }}/results.sarif | |
| category: zizmor |