Skip to content

ci: release environment and secrets check - #74

Merged
PrimeBuild-pc merged 1 commit into
mainfrom
ci/release-environment
Oct 22, 2026
Merged

PrimeBuild-pc merged 1 commit into
mainfrom
ci/release-environment

Conversation

@PrimeBuild-pc

Copy link
Copy Markdown
Owner

What

  • The release, publish-winget and publish-chocolatey jobs run in the protected release environment: they wait for the maintainer's approval and read the environment secrets.
  • New manual workflow Check release secrets (check-release-secrets.yml): no permissions, publishes nothing, never prints a value.
    • Inside the environment: confirms CHOCOLATEY_API_KEY, WINGET_GITHUB_TOKEN, WINGET_FORK_OWNER exist and that the winget token is valid and owned by WINGET_FORK_OWNER (read-only GET /user).
    • Outside the environment: shows whether the repository-level copies still exist, so they can be deleted safely.

Checks

  • actionlint 1.7.12: no findings.
  • Environment release: required reviewer PrimeBuild-pc; deployments only from main and tags v*.*.*.

… check

The release, winget and chocolatey jobs run in the 'release' environment, so
they wait for the maintainer's approval and read the environment secrets.
'Check release secrets' is a manual, publish-nothing workflow: inside the
environment it confirms the three secrets exist and that the winget token is
valid and owned by WINGET_FORK_OWNER; a second job outside the environment
shows whether the repository-level copies still exist.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T00:43:41.886879Z 37db369 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 37db3691c6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +52 to +55
env:
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}
WINGET_GITHUB_TOKEN: ${{ secrets.WINGET_GITHUB_TOKEN }}
WINGET_FORK_OWNER: ${{ secrets.WINGET_FORK_OWNER }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Restrict the repository-secret probe to trusted code

While the repository-level copies still exist, this job has no protected environment yet injects all three credentials. Any user with repository write access can manually dispatch a workflow_dispatch workflow against a selected branch (GitHub Docs); such a user can alter this job on their branch to exfiltrate the Chocolatey key or winget token without obtaining the intended release-environment approval. Delete the repository copies before exposing this workflow, or inspect secret metadata through an approved environment/API path instead of materializing the values in this unprotected job.

Useful? React with 👍 / 👎.

@PrimeBuild-pc
PrimeBuild-pc merged commit 68fd711 into main Oct 22, 2026
3 checks passed
@PrimeBuild-pc
PrimeBuild-pc deleted the ci/release-environment branch October 22, 2026 00:45
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