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

Restrict push CI to main, fix permissions #363

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

boomanaiden154
Copy link
Collaborator

@boomanaiden154 boomanaiden154 commented Sep 13, 2024

This patch makes two primary changes to the CI config. It restricts the CI running on push events to only run on the main branch. This prevents the CI from running twice on PRs from branches in the main repository, which are needed for stacked PRs.

Additionally, this PR sets the permissions at the top of the file, which is a general best practice for Github workflows for security reasons.

Additionally, bump a couple of the actions that were using deprecated NodeJS versions so we do not get the warning anymore.

This patch makes two primary changes to the CI config. It restricts the
CI running on push events to only run on the main branch. This prevents
the CI from running twice on PRs from branches in the main repository,
which are needed for stacked PRs.

Additionally, this PR sets the permissions at the top of the file, which
is a general best practice for Github workflows for security reasons.
@boomanaiden154 boomanaiden154 merged commit a6859d6 into google:main Sep 13, 2024
15 checks passed
@boomanaiden154 boomanaiden154 deleted the misc-ci-fixes-9-12-24 branch September 13, 2024 15:21
boomanaiden154 added a commit that referenced this pull request Sep 16, 2024
This patch makes two primary changes to the CI config. It restricts the CI running on push events to only run on the main branch. This prevents the CI from running twice on PRs from branches in the main repository, which are needed for stacked PRs.

Additionally, this PR sets the permissions at the top of the file, which is a general best practice for Github workflows for security reasons.

Additionally, bump a couple of the actions that were using deprecated NodeJS versions so we do not get the warning anymore.
boomanaiden154 added a commit that referenced this pull request Sep 16, 2024
This patch makes two primary changes to the CI config. It restricts the CI running on push events to only run on the main branch. This prevents the CI from running twice on PRs from branches in the main repository, which are needed for stacked PRs.

Additionally, this PR sets the permissions at the top of the file, which is a general best practice for Github workflows for security reasons.

Additionally, bump a couple of the actions that were using deprecated NodeJS versions so we do not get the warning anymore.
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