mirror of
https://github.com/readest/readest.git
synced 2026-12-01 13:36:39 +00:00
Bumps the github-actions group with 6 updates: | Package | From | To | | --- | --- | --- | | [github/codeql-action/init](https://github.com/github/codeql-action) | `4.39.3` | `4.39.4` | | [github/codeql-action/analyze](https://github.com/github/codeql-action) | `4.39.3` | `4.39.4` | | [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) | `4.39.3` | `4.39.4` | | [cachix/install-nix-action](https://github.com/cachix/install-nix-action) | `31.11.5` | `32.0.0` | | [DeterminateSystems/determinate-nix-action](https://github.com/determinatesystems/determinate-nix-action) | `3.24.2` | `3.24.3` | | [ossf/scorecard-action](https://github.com/ossf/scorecard-action) | `2.5.0` | `2.6.0` | Updates `github/codeql-action/init` from 4.39.3 to 4.39.4 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](33d7b85da1...1bd86f2fdb) Updates `github/codeql-action/analyze` from 4.39.3 to 4.39.4 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](33d7b85da1...1bd86f2fdb) Updates `github/codeql-action/upload-sarif` from 4.39.3 to 4.39.4 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](33d7b85da1...1bd86f2fdb) Updates `cachix/install-nix-action` from 31.11.5 to 32.0.0 - [Release notes](https://github.com/cachix/install-nix-action/releases) - [Changelog](https://github.com/cachix/install-nix-action/blob/master/RELEASE.md) - [Commits](3dc140bfc7...bb0495a108) Updates `DeterminateSystems/determinate-nix-action` from 3.24.2 to 3.24.3 - [Release notes](https://github.com/determinatesystems/determinate-nix-action/releases) - [Commits](16f94ba7aa...4b04042352) Updates `ossf/scorecard-action` from 2.5.0 to 2.6.0 - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](fa7117db83...23f22cd436) --- updated-dependencies: - dependency-name: github/codeql-action/init dependency-version: 4.39.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: github/codeql-action/analyze dependency-version: 4.39.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: github/codeql-action/upload-sarif dependency-version: 4.39.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: cachix/install-nix-action dependency-version: 32.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: DeterminateSystems/determinate-nix-action dependency-version: 3.24.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: ossf/scorecard-action dependency-version: 2.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
160 lines
7.1 KiB
YAML
160 lines
7.1 KiB
YAML
# For most projects, this workflow file will not need changing; you simply need
|
||
# to commit it to your repository.
|
||
#
|
||
# You may wish to alter this file to override the set of languages analyzed,
|
||
# or to provide custom queries or build logic.
|
||
#
|
||
# ******** NOTE ********
|
||
# We have attempted to detect the languages in your repository. Please check
|
||
# the `language` matrix defined below to confirm you have the correct set of
|
||
# supported CodeQL languages.
|
||
#
|
||
name: 'CodeQL Advanced'
|
||
|
||
on:
|
||
push:
|
||
branches: ['main']
|
||
pull_request:
|
||
branches: ['main']
|
||
schedule:
|
||
- cron: '38 20 * * 4'
|
||
|
||
permissions: read-all
|
||
|
||
jobs:
|
||
# Outside PRs must link an issue and attribute every commit to an agent and
|
||
# model (CONTRIBUTING.md); every other job waits on this and is skipped when
|
||
# it fails. pr-gate.yml posts the explanation on the PR.
|
||
gate:
|
||
name: CodeQL gate
|
||
runs-on: ubuntu-latest
|
||
permissions:
|
||
contents: read
|
||
issues: read
|
||
pull-requests: read
|
||
steps:
|
||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||
with:
|
||
sparse-checkout: .github/scripts
|
||
persist-credentials: false
|
||
- run: node .github/scripts/pr-gate.mjs
|
||
env:
|
||
GITHUB_TOKEN: ${{ github.token }}
|
||
|
||
analyze:
|
||
needs: gate
|
||
name: Analyze (${{ matrix.language }})
|
||
# Runner size impacts CodeQL analysis time. To learn more, please see:
|
||
# - https://gh.io/recommended-hardware-resources-for-running-codeql
|
||
# - https://gh.io/supported-runners-and-hardware-resources
|
||
# - https://gh.io/using-larger-runners (GitHub.com only)
|
||
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
|
||
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
|
||
permissions:
|
||
# required for all workflows
|
||
security-events: write
|
||
|
||
# required to fetch internal or private CodeQL packs
|
||
packages: read
|
||
|
||
# only required for workflows in private repositories
|
||
actions: read
|
||
contents: read
|
||
|
||
# lets dorny/paths-filter list a PR's changed files via the REST API
|
||
pull-requests: read
|
||
|
||
strategy:
|
||
fail-fast: false
|
||
matrix:
|
||
include:
|
||
- language: actions
|
||
build-mode: none
|
||
- language: javascript-typescript
|
||
build-mode: none
|
||
- language: python
|
||
build-mode: none
|
||
- language: rust
|
||
build-mode: none
|
||
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
|
||
# Use `c-cpp` to analyze code written in C, C++ or both
|
||
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
|
||
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
|
||
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
|
||
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
|
||
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
|
||
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
|
||
steps:
|
||
- name: Checkout repository
|
||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||
|
||
# Rust analysis takes ~7 minutes; on PRs, run it only when Rust changed.
|
||
# Pushes to main and the weekly schedule always analyze Rust.
|
||
- name: Detect Rust changes
|
||
id: changes
|
||
if: matrix.language == 'rust' && github.event_name == 'pull_request'
|
||
uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4
|
||
with:
|
||
filters: |
|
||
rust:
|
||
- '**/*.rs'
|
||
- '**/Cargo.toml'
|
||
- '**/Cargo.lock'
|
||
|
||
# Add any setup steps before running the `github/codeql-action/init` action.
|
||
# This includes steps like installing compilers or runtimes (`actions/setup-node`
|
||
# or others). This is typically only required for manual builds.
|
||
# - name: Setup runtime (example)
|
||
# uses: actions/setup-example@v1
|
||
|
||
# Initializes the CodeQL tools for scanning.
|
||
- name: Initialize CodeQL
|
||
if: steps.changes.outputs.rust != 'false'
|
||
uses: github/codeql-action/init@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4
|
||
with:
|
||
languages: ${{ matrix.language }}
|
||
build-mode: ${{ matrix.build-mode }}
|
||
# If you wish to specify custom queries, you can do so here or in a config file.
|
||
# By default, queries listed here will override any specified in a config file.
|
||
# Prefix the list here with "+" to use these queries and those in the config file.
|
||
|
||
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
||
# queries: security-extended,security-and-quality
|
||
|
||
# If the analyze step fails for one of the languages you are analyzing with
|
||
# "We were unable to automatically build your code", modify the matrix above
|
||
# to set the build mode to "manual" for that language. Then modify this step
|
||
# to build your code.
|
||
# ℹ️ Command-line programs to run using the OS shell.
|
||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
||
- name: Run manual build steps
|
||
if: matrix.build-mode == 'manual'
|
||
shell: bash
|
||
run: |
|
||
echo 'If you are using a "manual" build mode for one or more of the' \
|
||
'languages you are analyzing, replace this with the commands to build' \
|
||
'your code, for example:'
|
||
echo ' make bootstrap'
|
||
echo ' make release'
|
||
exit 1
|
||
|
||
- name: Perform CodeQL Analysis
|
||
if: steps.changes.outputs.rust != 'false'
|
||
uses: github/codeql-action/analyze@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4
|
||
with:
|
||
category: '/language:${{matrix.language}}'
|
||
|
||
# A skipped category would leave the PR's code scanning check unable to
|
||
# compare with main ("1 configuration not found"). Upload an empty Rust
|
||
# result so the configuration is still present.
|
||
- name: Write empty Rust SARIF
|
||
if: steps.changes.outputs.rust == 'false'
|
||
run: |
|
||
echo '{"version":"2.1.0","$schema":"https://json.schemastore.org/sarif-2.1.0.json","runs":[{"tool":{"driver":{"name":"CodeQL"}},"results":[]}]}' > "$RUNNER_TEMP/empty-rust.sarif"
|
||
|
||
- name: Upload empty Rust SARIF
|
||
if: steps.changes.outputs.rust == 'false'
|
||
uses: github/codeql-action/upload-sarif@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4
|
||
with:
|
||
sarif_file: ${{ runner.temp }}/empty-rust.sarif
|
||
category: '/language:rust'
|