diff --git a/.github/workflows/workflow-generate-website.yml b/.github/workflows/workflow-generate-website.yml index b659741dfa..2b4c2fb01f 100644 --- a/.github/workflows/workflow-generate-website.yml +++ b/.github/workflows/workflow-generate-website.yml @@ -143,7 +143,7 @@ jobs: id: linkchecker uses: lycheeverse/lychee-action@4a5af7cd2958a2282cefbd9c10f63bdb89982d76 with: - args: --exclude-file ./build/config/.lycheeignore --verbose --no-progress './docs/public/**/*.html' --accept 200,206,429 + args: --exclude-file ./build/config/.lycheeignore --verbose --no-progress --accept 200,206,429 './published/**/*.html' --exclude-mail --skip-missing format: markdown output: html-link-report.md env: @@ -180,7 +180,4 @@ jobs: enable_jekyll: false publish_dir: ./docs/public publish_branch: nist-pages - commit_user_name: OSCAL GitHub Actions Bot - commit_user_email: oscal@nist.gov - commit_author: OSCAL GitHub Actions Bot commit_message: Deploying website [ci deploy skip] diff --git a/.github/workflows/workflow-validate-website-content.yml b/.github/workflows/workflow-validate-website-content.yml index 0809ab3fd5..d51e48037b 100644 --- a/.github/workflows/workflow-validate-website-content.yml +++ b/.github/workflows/workflow-validate-website-content.yml @@ -35,7 +35,7 @@ jobs: id: linkchecker uses: lycheeverse/lychee-action@4a5af7cd2958a2282cefbd9c10f63bdb89982d76 with: - args: --exclude-file ./build/config/.lycheeignore --verbose --no-progress --accept 200,206,429 './published/**/*.html' --exclude-mail + args: --exclude-file ./build/config/.lycheeignore --verbose --no-progress --accept 200,206,429 './published/**/*.html' --exclude-mail --skip-missing env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create issue if bad links detected diff --git a/build/config/.lycheeignore b/build/config/.lycheeignore index e42dd1db05..653654eead 100644 --- a/build/config/.lycheeignore +++ b/build/config/.lycheeignore @@ -14,3 +14,9 @@ https://cdn.telos.com/wp-content/uploads/2021/06/22150746/Xacta-360-EULA-US.pdf https://search.usa.gov/search https://example.com/.* https://www.mirantis.com/blog/automating-compliance-for-highly-regulated-industries-with-docker-enterprise-edition-and-oscal.* +# TODO: Remove this exemption for URI Use page added in usnistgov/OSCAL#1263 is +# merged from develop into main (and nist-pages) the page officially gets published +# and is checkable. See this failed build for more details: +# https://github.com/usnistgov/OSCAL/actions/runs/3275978846 +#https://pages.nist.gov/OSCAL/concepts/uri-use* +#^file:///*/OSCAL/docs/public/OSCAL/concepts/uri-use$