mirror of
https://github.com/lukaszraczylo/kubernetes-images-sync-operator.git
synced 2026-12-06 07:14:14 +00:00
* ci(pr): grant actions read so the shared PR checks start go-pr.yaml's CodeQL job asks for actions: read. A reusable workflow cannot ask for more than its caller grants, so the whole PR run failed at startup with no jobs. Grant the missing scope. * refactor(controller): use RequeueAfter instead of the deprecated Requeue controller-runtime deprecates Result.Requeue (SA1019), which the PR checks now report because they finally start. Requeue after 30 seconds, the interval the cluster image controller already uses for its max-parallel wait. --------- Co-authored-by: Bug Fixer <[email protected]>
24 lines
402 B
YAML
24 lines
402 B
YAML
name: Pull Request
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
pull-requests: write
|
|
security-events: write
|
|
|
|
jobs:
|
|
pr-checks:
|
|
uses: lukaszraczylo/shared-actions/.github/workflows/go-pr.yaml@main
|
|
with:
|
|
go-version: "1.26"
|
|
secrets: inherit
|