-
Notifications
You must be signed in to change notification settings - Fork 72
🌱 Sync workflows from kubestellar/infra #1102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| name: AI Fix with Copilot | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| issue_number: | ||
| description: Issue number to assign to Copilot | ||
| required: true | ||
| type: string | ||
| issues: | ||
| types: [labeled] | ||
| pull_request_target: | ||
| types: [opened] | ||
|
|
||
| permissions: | ||
| contents: write | ||
| issues: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| ai-fix: | ||
| uses: kubestellar/infra/.github/workflows/reusable-ai-fix.yml@main | ||
| with: | ||
| issue_number: ${{ github.event.inputs.issue_number || '' }} | ||
| secrets: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| name: Copilot PR Automation | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| pr_number: | ||
| description: PR number to process | ||
| required: true | ||
| type: string | ||
| pull_request_target: | ||
| types: [opened, synchronize, ready_for_review] | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| issues: write | ||
| statuses: write | ||
|
|
||
| concurrency: | ||
| group: copilot-automation-${{ github.event.pull_request.number || github.event.inputs.pr_number || github.sha }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| copilot-automation: | ||
| uses: kubestellar/infra/.github/workflows/reusable-copilot-automation.yml@main | ||
| with: | ||
| pr_number: ${{ github.event.inputs.pr_number || '' }} | ||
| secrets: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
|
Comment on lines
+28
to
+29
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The secret passing pattern used here is inconsistent with other workflows in this repository. All other reusable workflow calls from kubestellar/infra use
secrets: inheritinstead of explicitly passingtoken: ${{ secrets.GITHUB_TOKEN }}. This should be changed to maintain consistency with the established pattern in the codebase. Update the secrets section to usesecrets: inheritinstead of the explicit token parameter.