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

CircleCI Slack orb fails from forks, causing workflows to error out #6777

Closed
cfm opened this issue Mar 29, 2023 · 2 comments · Fixed by #6776
Closed

CircleCI Slack orb fails from forks, causing workflows to error out #6777

cfm opened this issue Mar 29, 2023 · 2 comments · Fixed by #6776

Comments

@cfm
Copy link
Member

cfm commented Mar 29, 2023

Description

After #6739, when CircleCI runs on a branch from a fork, the new Slack orb errors out without $SLACK_ACCESS_TOKEN.

Steps to Reproduce

  1. Fork freedomofpress/securedrop.
  2. Clone your fork and check out a new branch.
  3. Commit something on your branch, even if it's just git commit --allow-empty.
  4. Push your branch to your fork.
  5. Open a pull request from your branch into freedomofpress/securedrop.

Expected Behavior

CircleCI runs and passes , and the Slack orb posts a notification to #securedrop-notifications.

Actual Behavior

In each CircleCI job, step Slack - Sending Notification errors out and the job fails:

In order to use the Slack Orb (v4 +), an OAuth token must be present via the SLACK_ACCESS_TOKEN environment variable.
Follow the setup guide available in the wiki: https://github.com/CircleCI-Public/slack-orb/wiki/Setup

Exited with code exit status 1

CircleCI received exit code 1

Comments

#6739 comes from freedomofpress/infrastructure#3225, but we should probably hold off on trying to fix this until we've decided freedomofpress/securedrop-engineering#24.

@cfm cfm added goals: sick CI CI-specific bug needs/discussion queued up for discussion at future team meeting. Use judiciously. labels Mar 29, 2023
@zenmonkeykstop
Copy link
Contributor

Do we want notifications from forks? That could get noisy.

@cfm
Copy link
Member Author

cfm commented Apr 11, 2023 via email

@cfm cfm changed the title CircleCI Slack orb fails from forks CircleCI Slack orb fails from forks, causing workflows to error out Apr 11, 2023
@cfm cfm removed the needs/discussion queued up for discussion at future team meeting. Use judiciously. label Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants