Skip to content
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

ci: fix Github actions permissions [backport release-5.5.0] #5391

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
- closed
- labeled

permissions:
contents: write
pull-requests: write

jobs:
backport:
name: Backport
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
description: Overwrite the content of TODO fields in generated release notes (typically needed for RC1 notes)
required: true
default: false

permissions:
contents: write
pull-requests: write

jobs:
main:
name: Generate Release Notes
Expand All @@ -34,7 +39,7 @@ jobs:
-Pjava8
)\" >> \"${GITHUB_OUTPUT}\""
shell: bash

- name: Check file existence
id: check_files
continue-on-error: true
Expand Down Expand Up @@ -70,7 +75,7 @@ jobs:
-t .github/release_notes_template/template.hbs \
-hhf .github/release_notes_template/helper.hbs \
-of ./kura/distrib/RELEASE_NOTES.txt

- name: Files exist write description
id: get-description
if: steps.check_files.outputs.exists == 'true' && github.event.inputs.overwrite == 'false'
Expand All @@ -80,7 +85,7 @@ jobs:
awk 'NR==FNR { desc = (desc == "" ? $0 : desc "\n" $0); next } /\[TODO\]/ && !done { sub(/\[TODO\]/, desc); done=1 } 1' target-env.txt done=0 ./kura/distrib/RELEASE_NOTES.txt > tmpfile && mv tmpfile ./kura/distrib/RELEASE_NOTES.txt
awk 'NR==FNR { desc = (desc == "" ? $0 : desc "\n" $0); next } /\[TODO\]/ && !done { sub(/\[TODO\]/, desc); done=1 } 1' known-issues.txt done=0 ./kura/distrib/RELEASE_NOTES.txt > tmpfile && mv tmpfile ./kura/distrib/RELEASE_NOTES.txt
shell: bash

- name: Files exist clean up
id: clean-up-files
if: steps.check_files.outputs.exists == 'true' && github.event.inputs.overwrite == 'false'
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/stale-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
schedule:
- cron: "30 1 * * *"

permissions:
issues: write
pull-requests: write

jobs:
close-issues:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/version-uptick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
- uptick_snapshot_to_release.yml
required: true

permissions:
contents: write
pull-requests: write

jobs:
uptick:
runs-on: ubuntu-latest
Expand Down
Loading