Repository navigation
chore: rolling promotion dev -> main #2606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: automagik-dev/genie
Length of output: 6937
🏁 Script executed:
Repository: automagik-dev/genie
Length of output: 18907
🌐 Web query:
GitHub Actions reusable workflow environment secret precedence caller secrets secrets inherit job environment reusable workflow💡 Result:
In GitHub Actions, secrets are not automatically passed to reusable workflows; they must be explicitly provided by the caller [1][2]. When a reusable workflow is called, you can pass specific secrets or use the
secrets: inheritkeyword to pass all secrets available to the calling workflow to the called workflow [1][3]. Precedence and Environment Secrets: 1. Secret Precedence: Generally, if secrets with the same name exist at different levels, the secret at the most specific level takes precedence [4]. The order (from lowest to highest precedence) is organization-level, repository-level, and environment-level [4]. 2. Reusable Workflow Environment Secrets: A common pitfall exists when attempting to use environment-scoped secrets within a reusable workflow. While a reusable workflow job must define theenvironmentattribute to access environment-level secrets, this alone is often insufficient [5][6]. Empirical evidence indicates that the caller must also provide the secrets via explicit mapping or by usingsecrets: inheritfor those secrets to resolve within the called workflow [5][6]. Withoutsecrets: inherit(or explicit passing), environment-level secrets may resolve to an empty string instead of the expected value [5][6]. 3. Inheritance Scope: Thesecrets: inheritkeyword passes all secrets the calling workflow has access to, including organization, repository, and environment secrets [5][7]. If a reusable workflow defines its ownenvironmentcontext, that local environment configuration can interact with the inherited secrets [3]. Note that if a secret is defined in both the calling workflow's environment and the reusable workflow's environment, the latter may take precedence depending on the specific configuration and resolution path [3]. Key takeaway: To ensure environment-scoped secrets are available in a reusable workflow, it is recommended to both define theenvironmentin the called job and usesecrets: inherit(or explicit passing) in the caller [5][6].Citations:
🌐 Web query:
GitHub Actions reusable workflow on.workflow_call.secrets explicit mapping environment secret reusable workflow inherit required💡 Result:
In GitHub Actions, you can pass secrets to a reusable workflow using either explicit mapping or the inherit keyword [1][2]. Explicit Mapping To use explicit mapping, you must first define the required secrets in the reusable workflow under the on.workflow_call.secrets key [3][2]. You can specify whether each secret is required [2]. Reusable workflow configuration: on: workflow_call: secrets: MY_SECRET: required: true Calling workflow configuration: jobs: call-workflow: uses: owner/repo/.github/workflows/reusable.yml@main secrets: MY_SECRET: ${{ secrets.MY_SECRET }} If a caller workflow attempts to pass a secret that is not defined in the reusable workflow's on.workflow_call.secrets block, or if a required secret is missing, it will result in an error [2]. Inherit Keyword Alternatively, the inherit keyword allows a calling workflow to implicitly pass all of its available secrets to the reusable workflow [1][4]. This is often used for convenience but carries security implications as it follows a permissive approach by passing every available secret to the called workflow [5][6]. Calling workflow configuration: jobs: call-workflow: uses: owner/repo/.github/workflows/reusable.yml@main secrets: inherit Key Considerations 1. Security and Principle of Least Privilege: Using secrets: inherit is generally discouraged in environments where strict security controls are required, as it may expose more secrets than necessary [5][6]. Explicit mapping is the recommended approach to limit the attack surface by ensuring only required secrets are shared [6]. 2. Nested Workflows: Secrets are only passed to directly called workflows [1]. If you have a workflow chain (A > B > C), workflow B must explicitly pass secrets to workflow C, or pass them using inherit, even if B inherited them from A [1][2]. 3. Automatic Secrets: GITHUB_TOKEN is automatically provided to reusable workflows by GitHub Actions and does not need to be explicitly passed or inherited [7][5].
Citations:
🏁 Script executed:
Repository: automagik-dev/genie
Length of output: 2046
Replace
secrets: inheritwith an explicitRELEASE_MANIFESTS_TOKENmapping..github/workflows/version.ymland.github/workflows/release.ymlonly need to forward the manifest token; inheriting all caller secrets widens the blast radius for no benefit. DeclareRELEASE_MANIFESTS_TOKENonworkflow_calland pass it explicitly at both call sites.📍 Affects 2 files
.github/workflows/version.yml#L433-L435(this comment).github/workflows/release.yml#L186-L190🤖 Prompt for AI Agents
Source: MCP tools