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 tests for Actions AllowList #180

Merged
merged 9 commits into from
Oct 8, 2020
Merged

Conversation

zeke
Copy link
Contributor

@zeke zeke commented Oct 7, 2020

Earlier today we got a pull request to automerge dependabot PRs: #177 (Thanks @tjenkinson ✨ )

This PR introduced a new Actions workflow that uses a GitHub Action tjenkinson/gh-action-auto-merge-dependency-updates that we are not already using in the codebase. I recently added an automated test to catch these scenarios, but my test didn't catch this new Action.

This PR updates the logic in that test to make sure that:

  • every used Action is allowed
  • every allowed Action is used

cc @github/docs-engineering

@zeke zeke added the engineering Will involve Docs Engineering label Oct 7, 2020
@zeke zeke requested a review from a team as a code owner October 7, 2020 19:05
@zeke zeke mentioned this pull request Oct 7, 2020
4 tasks
@tjenkinson
Copy link
Contributor

Aha I just noticed the same thing #186 🤦

will close mine

@tjenkinson tjenkinson mentioned this pull request Oct 7, 2020
4 tasks
Copy link
Contributor

@tjenkinson tjenkinson left a comment

Choose a reason for hiding this comment

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

small typo

tests/unit/actions-workflows.js Outdated Show resolved Hide resolved
@zeke
Copy link
Contributor Author

zeke commented Oct 7, 2020

Those failing tests are expected!

https://github.com/github/docs/pull/180/checks?check_run_id=1222424377#step:9:47

I will commit a fix to update the allow list soon.

cc @rachmari

Copy link
Contributor

@JasonEtco JasonEtco left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix @zeke (and @tjenkinson)! ✨

@zeke zeke merged commit 01f53f2 into main Oct 8, 2020
@zeke zeke deleted the fix-tests-for-actions-allow-list branch October 8, 2020 18:55
@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2020

Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours.

If you haven't already, you can add yourself to the list of contributors by creating a new comment in this PR using these instructions. Thanks again! ✨

jnidzwetzki pushed a commit to jnidzwetzki/docs that referenced this pull request Oct 6, 2022
…ub#180)

* Cleaned up left nav entries and tutorials pages for consistency

* Cleaned up left nav entries and tutorials pages for consistency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engineering Will involve Docs Engineering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants