Skip to content

Restrict secrets to protected branches#16648

Merged
trask merged 1 commit intoopen-telemetry:mainfrom
trask:protected-environment
Mar 18, 2026
Merged

Restrict secrets to protected branches#16648
trask merged 1 commit intoopen-telemetry:mainfrom
trask:protected-environment

Conversation

@trask
Copy link
Copy Markdown
Member

@trask trask commented Mar 17, 2026

Specifically motivated by wanting to enable new feature https://github.blog/changelog/2026-03-13-optionally-skip-approval-for-copilot-coding-agent-actions-workflows/

Which will allow CI to run automatically on copilot coding agent PRs (instead of having to hit Approve every time which is annoying).

The only downside to this is that copilot PRs could add workflows that access secrets (of course this relies on us reviewing the PR before hitting Approve).

Restricting secrets to main and release/* branches, which are already protected and can only be updated via PR merge, addresses this concern.

I have related IaC PR up: https://github.com/open-telemetry/admin/pull/595

@trask trask marked this pull request as ready for review March 17, 2026 20:04
@trask trask requested a review from a team as a code owner March 17, 2026 20:04
@laurit
Copy link
Copy Markdown
Contributor

laurit commented Mar 18, 2026

Restricting secrets to main and release/* branches, which are already protected and can only be updated via PR merge, addresses this concern.

I think that the only branches we have besides these are the renovate ones.

@trask
Copy link
Copy Markdown
Member Author

trask commented Mar 18, 2026

I think that the only branches we have besides these are the renovate ones.

my main motivation is that the copilot coding agent branches won't have access

@trask trask merged commit 7132b04 into open-telemetry:main Mar 18, 2026
93 checks passed
@trask trask deleted the protected-environment branch March 18, 2026 19:44
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