Skip to content

add permissions#710

Merged
bvolovat merged 1 commit into
mainfrom
run_test_from_private_repo
Feb 3, 2026
Merged

add permissions#710
bvolovat merged 1 commit into
mainfrom
run_test_from_private_repo

Conversation

@bvolovat
Copy link
Copy Markdown
Contributor

@bvolovat bvolovat commented Feb 3, 2026

Overview

Summary by CodeRabbit

  • Chores
    • Updated GitHub Actions workflow permissions configuration to enforce explicit access controls.

@bvolovat bvolovat requested a review from Naor-Armo February 3, 2026 16:17
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 3, 2026

📝 Walkthrough

Walkthrough

A permissions block was added to the pr-merged workflow job, explicitly defining read/write access for actions, id-token, packages, contents, and pull-requests. No functional changes to job logic or execution.

Changes

Cohort / File(s) Summary
GitHub Workflow Configuration
.github/workflows/pr-merged.yaml
Added explicit permissions block to pr-merged job with read access for actions and pull-requests, write access for id-token, packages, and contents.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Suggested reviewers

  • Naor-Armo
  • matthyx

Poem

🐰 With whiskers twitched and paws held high,
Our workflow now's more secure, oh my!
Permissions added, crystal clear,
The pr-merged job's authority's here! 🔐

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'add permissions' is vague and generic, failing to clearly communicate what permissions are being added or why. Revise the title to be more specific and descriptive, e.g., 'Add explicit GitHub workflow permissions to pr-merged job' or 'Configure permissions for pr-merged workflow job'.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch run_test_from_private_repo

Important

Action Needed: IP Allowlist Update

If your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:

  • 136.113.208.247/32 (new)
  • 34.170.211.100/32
  • 35.222.179.152/32

Failure to add the new IP will result in interrupted reviews.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In @.github/workflows/pr-merged.yaml:
- Around line 30-35: Update the parent workflow permissions block to remove
unnecessary broad permissions: in the permissions section (the block containing
actions, id-token, packages, contents, pull-requests) keep only id-token: write
and packages: write; remove contents: write, pull-requests: read, and actions:
read so child jobs (docker-build which declares contents: read and
create-release-and-retag which declares contents: write) can declare their own
permissions explicitly and override the parent as intended.

Comment on lines +30 to +35
permissions:
actions: read
id-token: write
packages: write
contents: write
pull-requests: read
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

cd "$(git rev-parse --show-toplevel)" 2>/dev/null || cd .

# First, examine the structure and find the workflow files
echo "=== Finding workflow files ==="
fd -t f "pr-merged.yaml" .github/workflows/

echo ""
echo "=== Examining pr-merged.yaml ==="
cat -n .github/workflows/pr-merged.yaml

echo ""
echo "=== Checking for incluster-comp-pr-merged.yaml ==="
fd -t f "incluster-comp-pr-merged.yaml" .github/workflows/

Repository: kubescape/node-agent

Length of output: 2561


🏁 Script executed:

# If the reusable workflow exists, examine it
echo "=== Examining incluster-comp-pr-merged.yaml ==="
if [ -f ".github/workflows/incluster-comp-pr-merged.yaml" ]; then
  cat -n .github/workflows/incluster-comp-pr-merged.yaml
else
  echo "File not found, checking variations..."
  fd -t f "*comp*merged*" .github/workflows/ 2>/dev/null | head -20
fi

echo ""
echo "=== Searching for permission usage in reusable workflow ==="
rg -n "permissions:|contents|packages|id-token|pull-requests|actions:" .github/workflows/ -t yaml

Repository: kubescape/node-agent

Length of output: 19574


🏁 Script executed:

# Search for actions/tools that might need the permissions
echo "=== Actions and tools that might require permissions ==="
rg -n "uses:|run:" .github/workflows/pr-merged.yaml .github/workflows/incluster-comp-pr-merged.yaml 2>/dev/null -A 2

Repository: kubescape/node-agent

Length of output: 7332


Reduce parent workflow permissions; let child jobs declare their own needs.

The parent's contents: write is redundant—both docker-build (which explicitly declares contents: read) and create-release-and-retag (which declares contents: write) override their parent permissions with their own blocks. Remove contents: write from lines 30–35 and let each child job's permission declaration take precedence. Similarly, pull-requests: read and actions: read appear unused; the workflow conditions and called actions do not require them.

Keep only id-token: write and packages: write in the parent job, as they are genuinely needed by the docker-build step (cosign signing and container registry push).

🤖 Prompt for AI Agents
In @.github/workflows/pr-merged.yaml around lines 30 - 35, Update the parent
workflow permissions block to remove unnecessary broad permissions: in the
permissions section (the block containing actions, id-token, packages, contents,
pull-requests) keep only id-token: write and packages: write; remove contents:
write, pull-requests: read, and actions: read so child jobs (docker-build which
declares contents: read and create-release-and-retag which declares contents:
write) can declare their own permissions explicitly and override the parent as
intended.

@bvolovat bvolovat merged commit 7d0f641 into main Feb 3, 2026
23 of 24 checks passed
Darkflame72 pushed a commit to Darkflame72/home-ops that referenced this pull request Feb 10, 2026
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [kubescape-operator](https://kubescape.io/)
([source](https://redirect.github.com/kubescape/helm-charts)) | patch |
`1.30.2` → `1.30.3` |

---

### Release Notes

<details>
<summary>kubescape/helm-charts (kubescape-operator)</summary>

###
[`v1.30.3`](https://redirect.github.com/kubescape/helm-charts/releases/tag/kubescape-operator-1.30.3)

[Compare
Source](https://redirect.github.com/kubescape/helm-charts/compare/kubescape-operator-1.30.2...kubescape-operator-1.30.3)

Kubescape is an E2E Kubernetes cluster security platform

#### What's Changed

- chore: adding the ability to adjust the source of busybox by
[@&#8203;drew-viles](https://redirect.github.com/drew-viles) in
[#&#8203;784](https://redirect.github.com/kubescape/helm-charts/pull/784)
- add k8s context tag by
[@&#8203;YakirOren](https://redirect.github.com/YakirOren) in
[#&#8203;785](https://redirect.github.com/kubescape/helm-charts/pull/785)
- run system tests from private repo by
[@&#8203;bvolovat](https://redirect.github.com/bvolovat) in
[#&#8203;786](https://redirect.github.com/kubescape/helm-charts/pull/786)
- add stream logs and wait for tests finish by
[@&#8203;bvolovat](https://redirect.github.com/bvolovat) in
[#&#8203;787](https://redirect.github.com/kubescape/helm-charts/pull/787)
- fix attempt by
[@&#8203;bvolovat](https://redirect.github.com/bvolovat) in
[#&#8203;788](https://redirect.github.com/kubescape/helm-charts/pull/788)
- Update 02-e2e-test.yaml by
[@&#8203;armobot](https://redirect.github.com/armobot) in
[#&#8203;789](https://redirect.github.com/kubescape/helm-charts/pull/789)
- Run test from private repo by
[@&#8203;bvolovat](https://redirect.github.com/bvolovat) in
[#&#8203;791](https://redirect.github.com/kubescape/helm-charts/pull/791)
- add workflow\_call by
[@&#8203;bvolovat](https://redirect.github.com/bvolovat) in
[#&#8203;792](https://redirect.github.com/kubescape/helm-charts/pull/792)
- add startup probe by
[@&#8203;YakirOren](https://redirect.github.com/YakirOren) in
[#&#8203;793](https://redirect.github.com/kubescape/helm-charts/pull/793)
- <kubescape/kubescape@v3.0.47...v3.0.48>
- Fix typos in documentation by
[@&#8203;oglok](https://redirect.github.com/oglok) in
[kubescape/kubescape#1913](https://redirect.github.com/kubescape/kubescape/pull/1913)
- fix: Kustomize directory analysis not working by
[@&#8203;majiayu000](https://redirect.github.com/majiayu000) in
[kubescape/kubescape#1914](https://redirect.github.com/kubescape/kubescape/pull/1914)
- feat: Define labels to copy from workloads to reports by
[@&#8203;majiayu000](https://redirect.github.com/majiayu000) in
[kubescape/kubescape#1915](https://redirect.github.com/kubescape/kubescape/pull/1915)
- Add SkipPersistence flag to MetricsQueryParams in metrics endpoint by
[@&#8203;BroderPeters](https://redirect.github.com/BroderPeters) in
[kubescape/kubescape#1917](https://redirect.github.com/kubescape/kubescape/pull/1917)
- ci: update scorecard action version by
[@&#8203;AndrewCharlesHay](https://redirect.github.com/AndrewCharlesHay)
in
[kubescape/kubescape#1918](https://redirect.github.com/kubescape/kubescape/pull/1918)
- update test lists by
[@&#8203;amirmalka](https://redirect.github.com/amirmalka) in
[kubescape/kubescape#1919](https://redirect.github.com/kubescape/kubescape/pull/1919)
- build(deps): Bump github.com/sigstore/cosign/v3 from
3.0.3-0.20251208232815-901b44d65952 to 3.0.4 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[kubescape/kubescape#1920](https://redirect.github.com/kubescape/kubescape/pull/1920)
- Update build number retrieval and permissions in workflow by
[@&#8203;matthyx](https://redirect.github.com/matthyx) in
[kubescape/kubescape#1921](https://redirect.github.com/kubescape/kubescape/pull/1921)
- Fix workload scan to include allcontrols framework by
[@&#8203;Copilot](https://redirect.github.com/Copilot) in
[kubescape/kubescape#1922](https://redirect.github.com/kubescape/kubescape/pull/1922)
- build(deps): Bump github.com/sigstore/fulcio from 1.8.4 to 1.8.5 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[kubescape/kubescape#1923](https://redirect.github.com/kubescape/kubescape/pull/1923)
- Fix panic on unsafe interface{} to string type assertions by
[@&#8203;Copilot](https://redirect.github.com/Copilot) in
[kubescape/kubescape#1926](https://redirect.github.com/kubescape/kubescape/pull/1926)
- build(deps): Bump github.com/theupdateframework/go-tuf/v2 from 2.3.0
to 2.3.1 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[kubescape/kubescape#1927](https://redirect.github.com/kubescape/kubescape/pull/1927)
- build(deps): Bump github.com/sigstore/rekor from 1.4.3 to 1.5.0 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[kubescape/kubescape#1928](https://redirect.github.com/kubescape/kubescape/pull/1928)
- <kubescape/operator@v0.2.121...v0.2.126>
- bump version by
[@&#8203;jnathangreeg](https://redirect.github.com/jnathangreeg) in
[kubescape/operator#349](https://redirect.github.com/kubescape/operator/pull/349)
- Fix comment typo in checkECRRegistry function to clarify \_catalog
end… by [@&#8203;jnathangreeg](https://redirect.github.com/jnathangreeg)
in
[kubescape/operator#351](https://redirect.github.com/kubescape/operator/pull/351)
- add permissions by
[@&#8203;bvolovat](https://redirect.github.com/bvolovat) in
[kubescape/operator#352](https://redirect.github.com/kubescape/operator/pull/352)
- bump github.com/armosec/armoapi-go v0.0.673 by
[@&#8203;matthyx](https://redirect.github.com/matthyx) in
[kubescape/operator#353](https://redirect.github.com/kubescape/operator/pull/353)
- bump github.com/kubescape/go-logger v0.0.26 by
[@&#8203;matthyx](https://redirect.github.com/matthyx) in
[kubescape/operator#354](https://redirect.github.com/kubescape/operator/pull/354)
- bump github.com/goradd/maps v1.3.0 by
[@&#8203;matthyx](https://redirect.github.com/matthyx) in
[kubescape/operator#355](https://redirect.github.com/kubescape/operator/pull/355)
- <kubescape/kubevuln@v0.3.98...v0.3.104>
- replace debian 12 with debian 13 when building container images by
[@&#8203;pfarikrispy](https://redirect.github.com/pfarikrispy) in
[kubescape/kubevuln#317](https://redirect.github.com/kubescape/kubevuln/pull/317)
- Add comprehensive documentation and governance by
[@&#8203;matthyx](https://redirect.github.com/matthyx) in
[kubescape/kubevuln#318](https://redirect.github.com/kubescape/kubevuln/pull/318)
- Bump github.com/cilium/cilium from 1.16.9 to 1.16.17 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[kubescape/kubevuln#319](https://redirect.github.com/kubescape/kubevuln/pull/319)
- Add timeout to Grype DB update with graceful fallback to prevent
indefinite readiness probe failures by
[@&#8203;Copilot](https://redirect.github.com/Copilot) in
[kubescape/kubevuln#320](https://redirect.github.com/kubescape/kubevuln/pull/320)
- Prevent DB update cancellation on readiness probe by
[@&#8203;matthyx](https://redirect.github.com/matthyx) in
[kubescape/kubevuln#321](https://redirect.github.com/kubescape/kubevuln/pull/321)
- <kubescape/storage@v0.0.237...v0.0.239>
- feat: handle large object storage by clearing spec and updating
annotations by [@&#8203;matthyx](https://redirect.github.com/matthyx) in
[kubescape/storage#279](https://redirect.github.com/kubescape/storage/pull/279)
- bump k8s version to v0.35.0 by
[@&#8203;matthyx](https://redirect.github.com/matthyx) in
[kubescape/storage#280](https://redirect.github.com/kubescape/storage/pull/280)
- <kubescape/node-agent@v0.3.11...v0.3.36>
- feat: propagate IsTriggerAlert field from rules to runtime alerts by
[@&#8203;slashben](https://redirect.github.com/slashben) in
[kubescape/node-agent#686](https://redirect.github.com/kubescape/node-agent/pull/686)
- Generating release by
[@&#8203;slashben](https://redirect.github.com/slashben) in
[kubescape/node-agent#688](https://redirect.github.com/kubescape/node-agent/pull/688)
- Feature/rule engine redesign by
[@&#8203;YakirOren](https://redirect.github.com/YakirOren) in
[kubescape/node-agent#685](https://redirect.github.com/kubescape/node-agent/pull/685)
- refactor: update cloud metadata types to use armotypes package by
[@&#8203;matthyx](https://redirect.github.com/matthyx) in
[kubescape/node-agent#689](https://redirect.github.com/kubescape/node-agent/pull/689)
- Replace host sensor with node agent sensing by
[@&#8203;Bezbran](https://redirect.github.com/Bezbran) in
[kubescape/node-agent#681](https://redirect.github.com/kubescape/node-agent/pull/681)
- use k8s-interface by
[@&#8203;Bezbran](https://redirect.github.com/Bezbran) in
[kubescape/node-agent#691](https://redirect.github.com/kubescape/node-agent/pull/691)
- optimize header parsing and add early return in ruleAppliesToContext
by [@&#8203;YakirOren](https://redirect.github.com/YakirOren) in
[kubescape/node-agent#692](https://redirect.github.com/kubescape/node-agent/pull/692)
- improve field accessor retrieval with nil checks and type assertions
by [@&#8203;matthyx](https://redirect.github.com/matthyx) in
[kubescape/node-agent#694](https://redirect.github.com/kubescape/node-agent/pull/694)
- Bump github.com/sigstore/sigstore from 1.9.5 to 1.10.4 by
[@&#8203;dependabot](https://redirect.github.com/dependabot)\[bot] in
[kubescape/node-agent#696](https://redirect.github.com/kubescape/node-agent/pull/696)
- Add Azure ResourceGroup enrichment to CloudMetadata by
[@&#8203;slashben](https://redirect.github.com/slashben) in
[kubescape/node-agent#697](https://redirect.github.com/kubescape/node-agent/pull/697)
- Add unit tests for Azure ResourceGroup parsing by
[@&#8203;slashben](https://redirect.github.com/slashben) in
[kubescape/node-agent#698](https://redirect.github.com/kubescape/node-agent/pull/698)
- remove toMap function by
[@&#8203;YakirOren](https://redirect.github.com/YakirOren) in
[kubescape/node-agent#693](https://redirect.github.com/kubescape/node-agent/pull/693)
- run system test from private repo by
[@&#8203;bvolovat](https://redirect.github.com/bvolovat) in
[kubescape/node-agent#700](https://redirect.github.com/kubescape/node-agent/pull/700)
- bump: update golang-set dependency to v2.8.0 by
[@&#8203;matthyx](https://redirect.github.com/matthyx) in
[kubescape/node-agent#701](https://redirect.github.com/kubescape/node-agent/pull/701)
- bump: update armoapi-go dependency to v0.0.671 by
[@&#8203;matthyx](https://redirect.github.com/matthyx) in
[kubescape/node-agent#702](https://redirect.github.com/kubescape/node-agent/pull/702)
- update the tests\_groups by
[@&#8203;bvolovat](https://redirect.github.com/bvolovat) in
[kubescape/node-agent#703](https://redirect.github.com/kubescape/node-agent/pull/703)
- bump: update dependencies for backend, storage, and OpenAPI packages
by [@&#8203;matthyx](https://redirect.github.com/matthyx) in
[kubescape/node-agent#704](https://redirect.github.com/kubescape/node-agent/pull/704)
- update chart repo by
[@&#8203;bvolovat](https://redirect.github.com/bvolovat) in
[kubescape/node-agent#705](https://redirect.github.com/kubescape/node-agent/pull/705)
- bump: update cel-go dependency to v0.26.1 by
[@&#8203;matthyx](https://redirect.github.com/matthyx) in
[kubescape/node-agent#706](https://redirect.github.com/kubescape/node-agent/pull/706)
- Implement ClusterUID enrichment for runtime alerts by
[@&#8203;slashben](https://redirect.github.com/slashben) in
[kubescape/node-agent#708](https://redirect.github.com/kubescape/node-agent/pull/708)
- fix a bug where failed expressions would recompile on every event by
[@&#8203;YakirOren](https://redirect.github.com/YakirOren) in
[kubescape/node-agent#690](https://redirect.github.com/kubescape/node-agent/pull/690)
- fix container watcher error propagation by
[@&#8203;YakirOren](https://redirect.github.com/YakirOren) in
[kubescape/node-agent#709](https://redirect.github.com/kubescape/node-agent/pull/709)
- add permissions by
[@&#8203;bvolovat](https://redirect.github.com/bvolovat) in
[kubescape/node-agent#710](https://redirect.github.com/kubescape/node-agent/pull/710)
- upgrade to IG v0.48.1 by
[@&#8203;matthyx](https://redirect.github.com/matthyx) in
[kubescape/node-agent#695](https://redirect.github.com/kubescape/node-agent/pull/695)
-
<kubescape/synchronizer@v0.0.127...v0.0.128>
- perf: optimize memory usage by avoiding string-to-byte conversions by
[@&#8203;amirmalka](https://redirect.github.com/amirmalka) in
[kubescape/synchronizer#135](https://redirect.github.com/kubescape/synchronizer/pull/135)

#### New Contributors

- [@&#8203;drew-viles](https://redirect.github.com/drew-viles) made
their first contribution in
[#&#8203;784](https://redirect.github.com/kubescape/helm-charts/pull/784)
- [@&#8203;YakirOren](https://redirect.github.com/YakirOren) made their
first contribution in
[#&#8203;785](https://redirect.github.com/kubescape/helm-charts/pull/785)
- [@&#8203;armobot](https://redirect.github.com/armobot) made their
first contribution in
[#&#8203;789](https://redirect.github.com/kubescape/helm-charts/pull/789)
- [@&#8203;pfarikrispy](https://redirect.github.com/pfarikrispy) made
their first contribution in
[kubescape/kubevuln#317](https://redirect.github.com/kubescape/kubevuln/pull/317)
- [@&#8203;bvolovat](https://redirect.github.com/bvolovat) made their
first contribution in
[kubescape/operator#352](https://redirect.github.com/kubescape/operator/pull/352)
- [@&#8203;oglok](https://redirect.github.com/oglok) made their first
contribution in
[kubescape/kubescape#1913](https://redirect.github.com/kubescape/kubescape/pull/1913)
- [@&#8203;majiayu000](https://redirect.github.com/majiayu000) made
their first contribution in
[kubescape/kubescape#1914](https://redirect.github.com/kubescape/kubescape/pull/1914)
- [@&#8203;BroderPeters](https://redirect.github.com/BroderPeters) made
their first contribution in
[kubescape/kubescape#1917](https://redirect.github.com/kubescape/kubescape/pull/1917)
-
[@&#8203;AndrewCharlesHay](https://redirect.github.com/AndrewCharlesHay)
made their first contribution in
[kubescape/kubescape#1918](https://redirect.github.com/kubescape/kubescape/pull/1918)
- [@&#8203;Bezbran](https://redirect.github.com/Bezbran) made their
first contribution in
[kubescape/node-agent#681](https://redirect.github.com/kubescape/node-agent/pull/681)
- [@&#8203;bvolovat](https://redirect.github.com/bvolovat) made their
first contribution in
[kubescape/node-agent#700](https://redirect.github.com/kubescape/node-agent/pull/700)

**Full Changelog**:
<kubescape/helm-charts@kubescape-operator-1.30.2...kubescape-operator-1.30.3>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/Darkflame72/home-ops).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi45NS4yIiwidXBkYXRlZEluVmVyIjoiNDIuOTUuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUvaGVsbSIsInR5cGUvcGF0Y2giXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants