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

Fix update-pr workflow #171

Merged
merged 2 commits into from
Jul 31, 2024
Merged

Conversation

tautschnig
Copy link
Member

We cannot rely on values in GITHUB_ENV that were stored earlier in the same step. Instead, directly query secretsmanager as needed.

Also fixes the committer-email that used the literal BOT_EMAIL string rather than the variable.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

We cannot rely on values in GITHUB_ENV that were stored earlier in the
same step. Instead, directly query secretsmanager as needed.

Also fixes the committer-email that used the literal `BOT_EMAIL` string
rather than the variable.
@tautschnig tautschnig requested a review from markrtuttle as a code owner July 30, 2024 15:18
@@ -161,10 +159,6 @@ jobs:
with:
pattern: bottle-*

- name: Set up Homebrew
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you confirmed this action gives no added value?

Copy link
Member Author

Choose a reason for hiding this comment

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

We didn't have this before, so that's why I am now removing it. I only added this in one of my many debugging attempts.

echo "HOMEBREW_GITHUB_API_TOKEN=$(aws secretsmanager get-secret-value --secret-id RELEASE_CI_ACCESS_TOKEN | jq -r '.SecretString')" >> $GITHUB_ENV
echo "FORK_REPO=https://[email protected]/$BOT_USER/homebrew-$(echo $TAP |cut -d / -f 2).git" >> $GITHUB_ENV
echo "GITHUB_TOKEN=$HOMEBREW_GITHUB_API_TOKEN" >> $GITHUB_ENV
echo "FORK_REPO=https://$(aws secretsmanager get-secret-value --secret-id RELEASE_CI_ACCESS_TOKEN | jq -r '.SecretString')@github.com/$BOT_USER/homebrew-$(echo $TAP |cut -d / -f 2).git" >> $GITHUB_ENV
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you confirmed GITHUB_TOKEN is no longer needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't know what it should be needed for, so I'd rather try without. We only interact with a remote service (GitHub) via $FORK_REPO.

@tautschnig tautschnig merged commit 930d49c into model-checking:master Jul 31, 2024
0 of 6 checks passed
@tautschnig tautschnig deleted the update-pr-again branch July 31, 2024 17:18
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.

3 participants