Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
NxPKG committed Feb 7, 2025
1 parent f65a0f8 commit 5b73b42
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 13 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/codeql-migration-advanced.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CodeQL Migration
on:
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
inputs:
dry-run:
description: 'Preview changes'
type: boolean
default: false

jobs:
migrate:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: khulnasoft-lab/codeql-migrator@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
per-page: '20'
dry-run: ${{ inputs.dry-run }}
branch-name: 'feat/codeql-v3-upgrade'
max-workers: '8'
log-level: 'DEBUG'
commit-message: 'โฌ†๏ธ Upgrade CodeQL to v3'
pr-title: 'Security: Upgrade CodeQL Action to v3'
pr-body: |
# CodeQL v3 Upgrade
This PR automatically upgrades the CodeQL Action to v3.
## Changes
- Updates CodeQL Action from v2 to v3
- Maintains existing workflow configuration
- Improves security scanning capabilities
34 changes: 34 additions & 0 deletions .github/workflows/codeql-migration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CodeQL Migration
on:
schedule:
- cron: '0 0 * * 1' # Runs every Monday
workflow_dispatch:
inputs:
dry-run:
description: 'Preview changes without applying'
type: boolean
default: false

jobs:
migrate:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: Run CodeQL Migrator
uses: khulnasoft-lab/codeql-migrator@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
dry-run: ${{ inputs.dry-run }}
per-page: '20'
branch-name: 'update-codeql-v3'
commit-message: 'chore: update CodeQL action to v3'
pr-title: 'โฌ†๏ธ Upgrade CodeQL action to v3'
pr-body: |
This PR updates the CodeQL action from v2 to v3.
- Upgrades GitHub CodeQL Action to latest v3
- Maintains existing workflow configuration
- Tested and verified compatibility
20 changes: 7 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ jobs:
## ๐Ÿ›  Using as a GitHub Action
You can use this tool directly as a GitHub Action in your workflows:
Add this workflow to your repository to automatically migrate CodeQL from v2 to v3:
name: Migrate CodeQL
:/.github/workflows/codeql-migration.yml
name: CodeQL Migration
on:
schedule:
- cron: '0 0 * * 1' # Runs every Monday
Expand All @@ -86,20 +86,14 @@ on:
jobs:
migrate:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: khulnasoft-lab/codeql-migrator@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# Optional parameters with their defaults:
per-page: '10'
dry-run: 'false'
branch-name: 'update-codeql-v3'
skip-cleanup: 'false'
max-workers: '4'
log-level: 'INFO'
commit-message: 'Update CodeQL action to v3'
pr-title: 'Update CodeQL action from v2 to v3'
pr-body: 'This PR updates the CodeQL action from v2 to v3.'
### Action Inputs
Expand Down

0 comments on commit 5b73b42

Please sign in to comment.