-
Notifications
You must be signed in to change notification settings - Fork 35
feat: add snapshot-controller #731
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
base: main
Are you sure you want to change the base?
Changes from all commits
6d38505
bf3b632
9c58671
0dc26cb
3b20ed3
4e7b6a9
f3b13e8
8dfe239
165f9fa
1c55bf6
b5d7787
be39654
14c27c3
40720fa
f7942e2
a3159d3
2c80c90
f6f755a
555a89b
b84a457
b906090
e241be5
142a786
d3cd0bc
c313e53
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,48 @@ | |||||||||||||||||||||||
| name: bump | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| on: | |||||||||||||||||||||||
| workflow_dispatch: | |||||||||||||||||||||||
| schedule: | |||||||||||||||||||||||
| - cron: '0 0 * * *' | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| jobs: | |||||||||||||||||||||||
| kubernetes: | |||||||||||||||||||||||
| runs-on: ubuntu-latest | |||||||||||||||||||||||
| steps: | |||||||||||||||||||||||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| token: ${{ secrets.VEXXHOST_BOT_PAT }} | |||||||||||||||||||||||
| - run: ./hack/bump/kubernetes.sh | |||||||||||||||||||||||
| - uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| token: ${{ secrets.VEXXHOST_BOT_PAT }} | |||||||||||||||||||||||
| commit-message: "chore(deps): update kubernetes" | |||||||||||||||||||||||
| signoff: true | |||||||||||||||||||||||
| title: "chore(deps): update kubernetes" | |||||||||||||||||||||||
| body: | | |||||||||||||||||||||||
| ## Automated Kubernetes Version Update | |||||||||||||||||||||||
| This PR updates the Kubernetes versions in the CI workflow to the latest maintained versions. | |||||||||||||||||||||||
| Source: https://endoflife.date/kubernetes | |||||||||||||||||||||||
| delete-branch: true | |||||||||||||||||||||||
| branch: bump/kubernetes | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| cluster-autoscaler: | |||||||||||||||||||||||
| runs-on: ubuntu-latest | |||||||||||||||||||||||
| steps: | |||||||||||||||||||||||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| token: ${{ secrets.VEXXHOST_BOT_PAT }} | |||||||||||||||||||||||
| - run: ./hack/bump/cluster-autoscaler.sh | |||||||||||||||||||||||
| env: | |||||||||||||||||||||||
| GH_TOKEN: ${{ github.token }} | |||||||||||||||||||||||
| - uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8 | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| token: ${{ secrets.VEXXHOST_BOT_PAT }} | |||||||||||||||||||||||
| commit-message: "chore(deps): update cluster-autoscaler" | |||||||||||||||||||||||
| signoff: true | |||||||||||||||||||||||
| title: "chore(deps): update cluster-autoscaler" | |||||||||||||||||||||||
| body: | | |||||||||||||||||||||||
| ## Automated `cluster-autoscaler` update | |||||||||||||||||||||||
| This PR updates the `cluster-autoscaler` images to the latest versions. | |||||||||||||||||||||||
| delete-branch: true | |||||||||||||||||||||||
| branch: bump/cluster-autoscaler | |||||||||||||||||||||||
|
Comment on lines
+30
to
+48
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Copilot AutofixAI 5 months ago To fix the issue, add a permissions:
contents: write
pull-requests: writeNo method imports or external definitions are required.
Suggested changeset
1
.github/workflows/bump.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Refresh and try again.
|
|||||||||||||||||||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI 5 months ago
The optimal way to fix the issue is to add an explicit
permissionsblock to the workflow, at the top level (so it applies to all jobs by default), restricting the GITHUB_TOKEN to the least privilege. Since both jobs use theactions/checkoutandpeter-evans/create-pull-requestactions, and the PR creation is done via a custom token (not GITHUB_TOKEN), only read access to git contents is required. Therefore, setpermissions: contents: readat the root workflow level (just after the workflowname:), unless there are steps that require more permissions using the GITHUB_TOKEN (none seem present).Changes needed:
.github/workflows/bump.yml, insert apermissions:block after thename: bumpline, with at leastcontents: read.