mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Update framework coverage reports
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
update:
|
|
name: Update framework coverage report
|
|
if: github.repository == 'github/codeql'
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Dump GitHub context
|
|
env:
|
|
GITHUB_CONTEXT: ${{ toJSON(github.event) }}
|
|
run: echo "$GITHUB_CONTEXT"
|
|
- name: Clone self (github/codeql)
|
|
uses: actions/checkout@v5
|
|
with:
|
|
path: ql
|
|
fetch-depth: 0
|
|
- name: Set up Python 3.8
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.8
|
|
- name: Download CodeQL CLI
|
|
uses: ./ql/.github/actions/fetch-codeql
|
|
- name: Generate coverage files
|
|
run: |
|
|
python ql/misc/scripts/library-coverage/generate-report.py ci ql ql
|
|
|
|
- name: Create pull request with changes
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
python ql/misc/scripts/library-coverage/create-pr.py ql "$GITHUB_REPOSITORY"
|