diff --git a/projects/clr/.github/workflows/ai_codeql_fix.yaml b/projects/clr/.github/workflows/ai_codeql_fix.yaml new file mode 100644 index 0000000000..853eba7af9 --- /dev/null +++ b/projects/clr/.github/workflows/ai_codeql_fix.yaml @@ -0,0 +1,19 @@ +name: AI CodeQL Fix + +on: + schedule: + - cron: '15 12 * * *' + +jobs: + call_codeql_reusable_workflow: + uses: AMD-GH-Actions/ai-pr-platform-actions-lib/.github/workflows/reusable_codeql.yml@main + with: + team_name: rocm_clr + alerts: '' + from_date: '' + to_date: '' + filter_by_rules: '' + trigger_event: ${{ github.event_name }} + secrets: + gh_token: ${{ secrets.AI_GH_TOKEN }} + codeql_token: ${{ secrets.AI_CODEQL_API_KEY }} diff --git a/projects/clr/.github/workflows/ai_codeql_historical.yml b/projects/clr/.github/workflows/ai_codeql_historical.yml new file mode 100644 index 0000000000..de5af33de3 --- /dev/null +++ b/projects/clr/.github/workflows/ai_codeql_historical.yml @@ -0,0 +1,36 @@ +name: AI CodeQL Fix - historical + +on: + workflow_dispatch: + inputs: + alerts: + required: false + type: string + description: 'ℹ️Use either alert IDs or Start/End date!⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀List of alert IDs (comma-separated values)' + from_date: + required: false + type: string + description: 'Start date (use YYYY-MM-DD format)' + to_date: + required: false + type: string + description: 'End date (use YYYY-MM-DD format) ⠀⠀⠀ ⚠️Must be within 15 days of Start date!' + filter_by_rules: + required: false + type: string + description: 'Filter by Rule IDs ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⚠️Overrides team-configured rules⠀⠀⠀⠀ https://amd.atlassian.net/wiki/x/tSrkNg' + +jobs: + call_codeql_reusable_workflow: + uses: AMD-GH-Actions/ai-pr-platform-actions-lib/.github/workflows/reusable_codeql_historical.yml@main + with: + team_name: rocm_clr + alerts: ${{ inputs.alerts }} + from_date: ${{ inputs.from_date }} + to_date: ${{ inputs.to_date }} + filter_by_rules: ${{ inputs.filter_by_rules }} + trigger_event: ${{ github.event_name }} + secrets: + gh_token: ${{ secrets.AI_GH_TOKEN }} + codeql_token: ${{ secrets.AI_CODEQL_API_KEY }} +