-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
46 lines (42 loc) ยท 1.21 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: 'CodeQL v2 to v3 Migrator'
description: 'Automatically migrate CodeQL workflows from v2 to v3'
author: 'ksoft'
branding:
icon: 'shield'
color: 'blue'
inputs:
github-token:
description: 'GitHub token for authentication'
required: true
per-page:
description: 'Number of repositories to process'
required: false
default: '10'
dry-run:
description: 'Show what would be done without making actual changes'
required: false
default: 'false'
branch-name:
description: 'Name of the branch to create for the changes'
required: false
default: 'update-codeql-v3'
skip-cleanup:
description: 'Skip cleanup of cloned repositories'
required: false
default: 'false'
runs:
using: 'docker'
image: 'docker://ghcr.io/khulnasoft-lab/codeql-migrator:sha-041e45d'
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
LOG_LEVEL: ${{ inputs.log-level || 'INFO' }}
args:
- --per-page
- ${{ inputs.per-page }}
- ${{ inputs.dry-run == 'true' && '--dry-run' || '' }}
- --branch-name
- ${{ inputs.branch-name }}
- --skip-cleanup
- ${{ inputs.skip-cleanup == 'true' && 'true' || 'false' }}
- --max-workers
- ${{ inputs.max-workers || '4' }}