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

Work around a permissions bug in actions/checkout. #8339

Merged
merged 1 commit into from Apr 13, 2022
Merged

Conversation

creachadair
Copy link
Contributor

@creachadair creachadair commented Apr 13, 2022

Work around markdown-link-check issues.

This PR works around two issues causing the markdown link check to fail in CI.

  1. fatal: unsafe repository (REPO is owned by someone else) with ubuntu 20.04 container actions/checkout#760. A git permissions issue,
    apparently triggered by a combination of a git change and the behaviour of
    actions/checkout.

  2. Upgrade to markdown-link-check@3.10.0 gaurav-nelson/github-action-markdown-link-check#129.
    Merging an updated version of the underlying package that fixes a bug in the
    handling of local #anchors.

The workaround is a temporary patched fork of the link-checker action. This
should be removed once the upstream issues are addressed.

@williambanfield
Copy link
Contributor

Mind opening an issue to track changing this back?

@creachadair
Copy link
Contributor Author

Mind opening an issue to track changing this back?

Will do. First I have to find a workaround that actually works 🙂

This PR works around two issues causing the markdown link check to fail in CI.

1. actions/checkout#760. A git permissions issue,
   apparently triggered by a combination of a git change and the behaviour of
   actions/checkout.

2. gaurav-nelson/github-action-markdown-link-check#129.
   Merging an updated version of the underlying package that fixes a bug in the
   handling of local #anchors.

The workaround is a temporary patched fork of the link-checker action.  This
should be removed once the upstream issues are addressed.
@@ -16,7 +16,7 @@ jobs:
with:
PATTERNS: |
**/**.md
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.14
- uses: creachadair/github-action-markdown-link-check@master
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No secret here, it's a fork!

@creachadair creachadair merged commit 6bbf5b6 into master Apr 13, 2022
@creachadair creachadair deleted the mjf/ownership branch April 13, 2022 23:01
creachadair pushed a commit that referenced this pull request Apr 28, 2022
In #8339 we pointed the markdown link checker action to a patched version that
has the up-to-date version of the underlying check tool. In doing so, I missed
the periodic cron job that runs the same workflow. Update it to use the patched
version also.
creachadair pushed a commit that referenced this pull request Apr 28, 2022
In #8339 we pointed the markdown link checker action to a patched version that
has the up-to-date version of the underlying check tool. In doing so, I missed
the periodic cron job that runs the same workflow. Update it to use the patched
version also.
tychoish pushed a commit that referenced this pull request Apr 28, 2022
In #8339 we pointed the markdown link checker action to a patched version that
has the up-to-date version of the underlying check tool. In doing so, I missed
the periodic cron job that runs the same workflow. Update it to use the patched
version also.
tychoish pushed a commit to tychoish/tendermint that referenced this pull request Apr 29, 2022
In tendermint#8339 we pointed the markdown link checker action to a patched version that
has the up-to-date version of the underlying check tool. In doing so, I missed
the periodic cron job that runs the same workflow. Update it to use the patched
version also.
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