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(slack-fail-post-step): skip notifications from forks #6776

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

cfm
Copy link
Member

@cfm cfm commented Mar 29, 2023

Status

Ready for review

Description of Changes

Fixes #6777 by making the post-steps provided by the Slack orb conditional on having a $SLACK_ACCESS_TOKEN from the CircleCI environment.

Thanks to @nabla-c0d3 (and CircleCI support) for troubleshooting in #6764 (comment).

Testing

Deployment

CI-only.

@cfm cfm force-pushed the oh-say-can-you-ci branch 3 times, most recently from bb3a58b to b8b883f Compare April 11, 2023 18:24
Before executing the "slack/notify" step provided by the Slack orb,
check that we have a $SLACK_ACCESS_TOKEN from the CircleCI context
(reused across projects in our CircleCI organization).  Without this
check, workflow that expect to send Slack notifications will fail from
forks, where CircleCI runs outside our organization and therefore
doesn't have access to this context.
@cfm cfm changed the title [DNM] testing CI from fork after #6739 ci(slack-fail-post-step): skip notifications from forks Apr 11, 2023
@cfm cfm marked this pull request as ready for review April 11, 2023 18:55
@cfm cfm requested a review from a team as a code owner April 11, 2023 18:55
@cfm cfm requested a review from echoesactiii April 11, 2023 18:56
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.

CircleCI Slack orb fails from forks, causing workflows to error out
2 participants