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

Lyche link-checking #22

Conversation

nikitawootten-nist
Copy link
Collaborator

@nikitawootten-nist nikitawootten-nist commented Sep 18, 2023

This PR sets up link checking with Hugo (#5)

Progress

Side-effects

  • Parametrized the pages GHA workflow for use with workflow_dispatch events
  • Added aliases for pages that are no longer needed, and bad links from old OSCAL Metaschemas
  • Fixed about 900 dead links

@nikitawootten-nist nikitawootten-nist linked an issue Sep 18, 2023 that may be closed by this pull request
@nikitawootten-nist nikitawootten-nist force-pushed the nikitawootten-nist/issue5-linkchecking branch from d47fbff to 6e2c747 Compare September 19, 2023 13:40
@nikitawootten-nist nikitawootten-nist force-pushed the nikitawootten-nist/issue5-linkchecking branch from 2d80449 to 456ddff Compare September 22, 2023 18:17
@nikitawootten-nist
Copy link
Collaborator Author

Note: the workflow will fail due to new permissions being added to the action. Refer to the test PR for results: nikitawootten-nist#1

@nikitawootten-nist nikitawootten-nist force-pushed the nikitawootten-nist/issue5-linkchecking branch from f46950e to 27a937e Compare September 26, 2023 14:54
@nikitawootten-nist nikitawootten-nist marked this pull request as ready for review September 26, 2023 15:45
@nikitawootten-nist nikitawootten-nist requested a review from a team as a code owner September 26, 2023 15:45
@nikitawootten-nist nikitawootten-nist changed the title [WIP] Lyche link-checking Lyche link-checking Sep 26, 2023
Copy link

@wendellpiez wendellpiez left a comment

Choose a reason for hiding this comment

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

Looks awesome, nice work on a pesky problem.

Interesting to think about: whether OSCAL repo wants its own XSpec, whether calling, or sometimes switching in for the XSpec lower down.

@Compton-US Compton-US self-requested a review September 26, 2023 17:05
@nikitawootten-nist
Copy link
Collaborator Author

nikitawootten-nist commented Sep 26, 2023

@iMichaela @aj-stein-nist should the release-notes be removed/aliased to GitHub's release page as part of this PR?

Copy link

@Compton-US Compton-US left a comment

Choose a reason for hiding this comment

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

Verified that the ssp and cdef links are working.

@aj-stein-nist
Copy link
Contributor

@iMichaela @aj-stein-nist should the release-notes be removed/aliased to GitHub's release page as part of this PR?

I am fine with removing the redundant data or we need to update a checklist and start adding a page with PR review to lag a release. @iMichaela suggested as much: I think if we want to do that, we want to update the ("new") news page after the release is drafted. That means I am happy moving the currently (and frequently) out of sync release page (since we can edit GitHub notes quickly, the website) less so.

We can wait to see if Michaela agrees.

@aj-stein-nist
Copy link
Contributor

I had to understand the CI/CD error but it appears to relate to the permissions because the PR opened from a fork, not a branch of the upstream, @nikitawootten-nist. I am still happy with it and it stays approved.

@nikitawootten-nist
Copy link
Collaborator Author

I had to understand the CI/CD error but it appears to relate to the permissions because the PR opened from a fork, not a branch of the upstream, @nikitawootten-nist. I am still happy with it and it stays approved.

Unfortunately GitHub's UX for PRs from a fork isn't great. Any new permissions are denied without explanation. I have a twin PR on my fork demonstrating that the commits do build and produce linkcheck comments: nikitawootten-nist#1

@aj-stein-nist
Copy link
Contributor

aj-stein-nist commented Sep 27, 2023

We can wait to see if Michaela agrees.

@iMichaela agreed to this approach. @nikitawootten-nist will work on removing releases page, AJ will update procedures for release docs to update it and include an update to the news page.

@nikitawootten-nist
Copy link
Collaborator Author

Final checks passed: https://github.com/nikitawootten-nist/OSCAL-Reference/actions/runs/6329066790/job/17188603346

Merging now

@aj-stein-nist
Copy link
Contributor

Guidance updated in core wiki in the commit below.

https://github.com/usnistgov/OSCAL/wiki/OSCAL-Release-Checklist/45da2cb9fd540ef9e1a8ed195940e4f5326913f6

News page approach backported per usnistgov/OSCAL-Pages#52.

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.

Set up linkchecking
4 participants