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

chore: skip writing to GITHUB_ENV when building formula #40

Merged

Conversation

SpiffyEight77
Copy link
Contributor

Description

chore: skip writing to GITHUB_ENV when building formula

Issue

I'm working on the add brew tap for porter #3045, It appears that the CI process in homebrew-core does not permit writing to GITHUB_ENV.

This restriction leads to a panic when building formulas.

As a workaround, I skip writing to GITHUB_ENV when building formulas by detecting whether the repository is Homebrew/homebrew-core.

@SpiffyEight77 SpiffyEight77 force-pushed the chore/skip-github-env-write branch 2 times, most recently from 401fd99 to f0c8b7d Compare May 19, 2024 15:44
Signed-off-by: Ruihua Wen <spiffyeight77@gmail.com>
@SpiffyEight77 SpiffyEight77 marked this pull request as ready for review May 20, 2024 12:58
@kichristensen
Copy link
Contributor

kichristensen commented May 22, 2024

@SpiffyEight77 Thanks for the PR. It looks good to me. Have you been able to test that it works with this change in Homebrew?

@SpiffyEight77
Copy link
Contributor Author

SpiffyEight77 commented May 23, 2024

@SpiffyEight77 Thanks for the PR. It looks good to me. Have you been able to test that it works with this change in Homebrew?

@kichristensen
Thank you for your response.

I've tested it in the homebrew-core CI, and it has passed the formula building step.

Once this PR is merged and the formula submission for porter is complete, I'd like to explore how to inject an environment variable into the Trivy CI(It seems that the environment variable version will be used.) to make it more flexible.

@kichristensen
Copy link
Contributor

@schristoff It looks good to me, but you might have some insights into the different flows used?

Copy link
Member

@schristoff schristoff left a comment

Choose a reason for hiding this comment

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

😶‍🌫️ I'm 50/50 if this will break CI, but I don't think so since we moved to GHA. If it does, we will deal with it in Porter main.

@schristoff schristoff merged commit 9808687 into getporter:main May 24, 2024
2 checks passed
@SpiffyEight77 SpiffyEight77 deleted the chore/skip-github-env-write branch May 25, 2024 01:42
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.

None yet

3 participants