Skip to content

[BRE-1592] Update check permission workflow v2#704

Open
brandonbiete wants to merge 17 commits into
mainfrom
bre-1592/update-check-permission-workflow-v2
Open

[BRE-1592] Update check permission workflow v2#704
brandonbiete wants to merge 17 commits into
mainfrom
bre-1592/update-check-permission-workflow-v2

Conversation

@brandonbiete
Copy link
Copy Markdown
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/BRE-1592

📔 Objective

Fixes #700 issues with all the requirements to satisfy workflow centralization effort.

🚨 Breaking Changes

@brandonbiete brandonbiete requested a review from a team as a code owner April 13, 2026 18:22
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 13, 2026

Logo
Checkmarx One – Scan Summary & Detailsdca331b8-26fa-4746-8116-3d84378d3e46

Great job! No new security vulnerabilities introduced in this pull request

Comment thread .github/workflows/test-check-permission.yml Outdated
Comment thread .github/workflows/test-check-permission.yml Outdated
Comment thread .github/workflows/test-check-permission.yml Outdated
Copy link
Copy Markdown
Contributor

@gitclonebrian gitclonebrian left a comment

Choose a reason for hiding this comment

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

Outputting errors to the step summary can be helpful when troubleshooting

Comment thread .github/workflows/test-check-permission.yml Outdated
Comment thread .github/workflows/test-check-permission.yml Outdated
Comment thread .github/workflows/test-check-permission.yml Outdated
Comment thread .github/workflows/test-check-permission.yml Outdated
Comment thread .github/workflows/test-check-permission.yml Outdated
@brandonbiete brandonbiete enabled auto-merge (squash) April 15, 2026 16:19
@gitclonebrian gitclonebrian marked this pull request as draft April 17, 2026 15:52
auto-merge was automatically disabled April 17, 2026 15:52

Pull request was converted to draft

brandonbiete and others added 17 commits April 20, 2026 11:51
- Add README.md with workflow documentation
- Add check-permission.yml template workflow
- Create test-action.yml with test mode for testing only
- Add test workflow validating all failure modes
- Addresses security issue from #700 by isolating test mode
- Add validation for test_user_permission input
- Add security architecture comment explaining test_mode isolation
- Document test-action.yml in README with security note
- Move test-action.yml to check-permission-test/action.yml
- Update test workflow to use ./check-permission-test directory
- Update README to reference new test action location
- Fixes GitHub Actions directory requirement for local actions
The job needs to actually fail for validation to detect it
- Remove check-permission-test directory and test_mode bypass
- Update test workflow to call production workflow with real permissions
- Tests assume runner has write but not admin permission
- Update README to document new testing approach
Co-authored-by: gitclonebrian <235774926+gitclonebrian@users.noreply.github.com>
Co-authored-by: gitclonebrian <235774926+gitclonebrian@users.noreply.github.com>
Co-authored-by: gitclonebrian <235774926+gitclonebrian@users.noreply.github.com>
Co-authored-by: gitclonebrian <235774926+gitclonebrian@users.noreply.github.com>
Co-authored-by: gitclonebrian <235774926+gitclonebrian@users.noreply.github.com>
Co-authored-by: gitclonebrian <235774926+gitclonebrian@users.noreply.github.com>
Co-authored-by: gitclonebrian <235774926+gitclonebrian@users.noreply.github.com>
Co-authored-by: gitclonebrian <235774926+gitclonebrian@users.noreply.github.com>
Uses github.workflow_ref to determine which version of the action to checkout. External repos calling with @main get the action from main, while PR tests get the action from the PR branch. This allows testing action changes in PRs and fixes external repo failures where the action couldn't be found.
@gitclonebrian gitclonebrian force-pushed the bre-1592/update-check-permission-workflow-v2 branch from 50fc795 to e0124d7 Compare April 20, 2026 15:51
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

@gitclonebrian gitclonebrian left a comment

Choose a reason for hiding this comment

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

🚀

@brandonbiete brandonbiete removed the hold label Apr 22, 2026
@brandonbiete brandonbiete marked this pull request as ready for review April 22, 2026 15:51
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