Skip to content

DEVX-773: (AI GENERATED) add explicit permissions to workflow jobs#144

Open
liudmyla-b wants to merge 1 commit into
mainfrom
feature/DEVX-773-add-workflow-permissions
Open

DEVX-773: (AI GENERATED) add explicit permissions to workflow jobs#144
liudmyla-b wants to merge 1 commit into
mainfrom
feature/DEVX-773-add-workflow-permissions

Conversation

@liudmyla-b
Copy link
Copy Markdown

Adds minimal required `permissions:` blocks to workflow jobs that were missing them.

Motivation: Explicit permissions follow the principle of least privilege and prevent accidental access escalation.

Note: Please review this PR carefully, as it was generated with assistance from AI. This is only a migration helper, so ensure you thoroughly evaluate the changes before MERGING IT ON YOUR OWN.

Timeline:
From June 1
Default switches to read-only org-wide. Repos can still override the setting for their own workflows — giving teams a grace week to finish up.
From June 8
Read-only is enforced via org policy. No more per-repo override.

Changes:

  • gradle-build.yml: validation, gradle-ci jobs
  • leanix-github-agent-code-coverage.yml: leanix-github-agent-connector-ci job

Permissions added:

  • validation: permissions: {} (no checkout, no actions — no permissions needed)
  • gradle-ci: contents: read, actions: write (actions/checkout + gradle/gradle-build-action@v2 with default caching)
  • leanix-github-agent-connector-ci: contents: read, actions: write, pull-requests: write (actions/checkout + gradle/gradle-build-action@v2 with caching + madrapps/jacoco-report)

Adds minimal required permissions block to comply with least-privilege
principle. GitHub Actions defaults to broad permissions when none are
specified.
@internal-ai-adoption-analytics
Copy link
Copy Markdown

📊 Survey: Please help us track internal AI adoption. This is not for evaluation, only for metrics. You can update this anytime before merge.
🤖 Which AI developer tool(s), if any, were used to assist with this PR? Please tick one or more boxes below:

  • None
  • Cline
  • Claude Code
  • Cursor
  • GitHub Copilot
  • Other

🧑‍💻 If AI was used, what was it mainly used for?

  • Coding / Implementation
  • Testing (unit, integration, e2e)
  • Documentation
  • Research / Investigation
  • Refactoring / Cleanup
  • Configuration / DevOps
  • Other

Thank you in advance for your feedback.💙🙏🎉
Here's a joke to brighten your day: Why don't AI models ever get tired? Because they never sleep() properly! 💤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant