Skip to content

Add contents: read to base-OS and ubuntu-sync check workflows#15500

Open
arpitjain099 wants to merge 1 commit into
google:masterfrom
arpitjain099:ci/add-permissions
Open

Add contents: read to base-OS and ubuntu-sync check workflows#15500
arpitjain099 wants to merge 1 commit into
google:masterfrom
arpitjain099:ci/add-permissions

Conversation

@arpitjain099

Copy link
Copy Markdown
Contributor

Two pre-existing pull_request validators (check_base_os.yml and ubuntu_version_sync.yml) currently leave their GITHUB_TOKEN scope at the repository default. Both just:

  1. Check out the repo (actions/checkout)
  2. Diff changed files against the base/head SHAs
  3. Run a Python/shell consistency check and exit 1 on mismatch

Neither posts a comment, pushes a commit, or calls any GitHub write endpoint. Declaring contents: read makes the minimum scope explicit and matches what other workflows in this repo do.

YAML parses cleanly.

@arpitjain099

Copy link
Copy Markdown
Contributor Author

Hi @DavidKorczynski, gentle ping on this. PR has been open for 4 days without review. I noticed you've been on the recent-merger side of recent merges in this repo. When you have a moment, would you mind giving it a quick look? No urgency. Happy to address any feedback.

@arpitjain099

Copy link
Copy Markdown
Contributor Author

Just checking in on this. Let me know if anything needs tweaking before it can be considered.

Both workflows fire on pull_request, check out the repo, and run shell/python
diff scripts to validate that legacy and versioned base-OS files stay in sync.
Neither pushes or comments back to the PR - contents: read is the right scope.

Signed-off-by: Arpit Jain <arpitjain099@gmail.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.

1 participant