Skip to content
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

ci(release): eliminate bypassing of branch protection #285

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

tbouffard
Copy link
Member

The workflow commits to the main branch and the branch protection configured in the GitHub repository prevents this for all users.

Previously, the protection was temporarily bypassed and the user performing the commit required administrator permissions (due to the configuration of the branch protection).

Now protection is done using GitHub branch ruleset, and there's no need to bypass protection. In this way, workflow can be simplified.

Notes

The settings have already been updated

  • rulesets replaces branch and tag protection: https://github.com/process-analytics/bpmn-visualization-js/rules (publicly visible)
    repository
  • permissions of the user performing the Git operations in the repository has been downgraded. ⚠️ IMPORTANT: this PR must then be merged prior doing the next release. The workflow currently in the main branch requires this user to have more permissions. If executed, it will fail.

This configuration is already used in the following repositories

The workflow commits to the main branch and the branch protection configured in the GitHub repository prevents this for all users.

Previously, the protection was temporarily bypassed and the user performing the commit required administrator permissions (due to the configuration of the branch protection).

Now protection is done using GitHub branch ruleset, and there's no need to bypass protection. In this way, workflow can be simplified.
@github-actions
Copy link

github-actions bot commented Sep 18, 2023

♻️ PR Preview 83fdefe has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@tbouffard tbouffard merged commit 9cbbb11 into master Sep 27, 2023
2 checks passed
@tbouffard tbouffard deleted the ci/release_no_need_for_admin_permissions branch September 27, 2023 09:27
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