Skip to content

Conversation

@lool
Copy link
Contributor

@lool lool commented May 26, 2025

Cleanup of workflows permission handling as to identify and fix a
missing permission for build-daily that now uses test.yml.

  • workflows: test: Move permissions to workflow level
  • workflows: Order and comments for permissions
  • workflows: LAVA schema check: Typo
  • workflows: LAVA schema scheck: Set permissions
  • workflows: Update comments for LAVA schema checks
  • workflows: Fix missing deps for test.yml
  • workflows: test-pr: Update permission comments

@github-actions
Copy link

Test Results

 1 files   2 suites   3m 1s ⏱️
15 tests 15 ✅ 0 💤 0 ❌
19 runs  19 ✅ 0 💤 0 ❌

Results for commit d1e2a9e.

@github-actions
Copy link

Test jobs for commit d1e2a9e

@ricardosalveti ricardosalveti requested review from mattface and mwasilew and removed request for mwasilew May 26, 2025 21:59
Copy link
Contributor

@mwasilew mwasilew left a comment

Choose a reason for hiding this comment

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

This looks good, but maybe the commits should be squashed?

checks: write # debos.yml?
contents: read # debos.yml ?
packages: read # debos.yml?
pull-requests: write # debos.yml?
Copy link
Contributor

Choose a reason for hiding this comment

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

this comes from EnricoMi reporting action.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yes, forgot to update comments in this file; fixed in latest push

# implicitely set all other permissions to none
permissions:
contents: read
contents: read # debos.yml
Copy link
Contributor

Choose a reason for hiding this comment

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

It's missing the permissions for the test and test reporting actions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is fixed in a dedicated commit separate from the cleanups

lool added 5 commits May 27, 2025 12:28
Permissions in job are probably cleaner, but since we're mainly
including this workflow from others, it's easier to find the intended
permissions in this way. Plus other workflows currently also manage
their permissions at the workflow rather than job level.

Also update permissions to more complete list.

Signed-off-by: Loïc Minier <[email protected]>
@lool lool force-pushed the fix-perms-for-included-workflows branch from d1e2a9e to bcdc331 Compare May 27, 2025 10:36
@lool lool merged commit c271451 into qualcomm-linux:main May 27, 2025
8 checks passed
@github-actions
Copy link

Test jobs for commit bcdc331

@lool lool deleted the fix-perms-for-included-workflows branch May 28, 2025 09:02
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