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

Bump xmlcalabash from 1.5.3-110 to 1.5.6-120 in /build #24

Open
wants to merge 136 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
25505c2
Release 1.0 metaschema adjustments (#1065)
david-waltermire Dec 9, 2021
929005a
reverting part constraints, since these are already handled
david-waltermire Jan 31, 2022
63def77
Profile resolver selection: XSpec additions and minor XSLT enhancemen…
galtm Feb 4, 2022
dd09086
Use XSpec variable instead of entity (#1136)
galtm Feb 28, 2022
9d0cbb3
Nonrecursive UUID functions plus XSpec tests (#1158)
galtm Feb 28, 2022
79db795
Iterate over sequence of characters, not positions (#1163)
galtm Mar 29, 2022
3e16c9d
Profile resolver: Metadata tests and way of determining top UUID (#1175)
galtm Apr 15, 2022
395e743
Test merge phase, plus minor XSLT enhancements (#1207)
galtm May 4, 2022
c022f30
Publishing generated metaschema resources [ci skip]
david-waltermire-nist May 17, 2022
3b6d09b
Support for control mapping (#1150)
david-waltermire Jul 5, 2022
c3f071f
Publishing generated metaschema resources [ci skip]
david-waltermire-nist Jul 5, 2022
e435681
Update metaschema
david-waltermire Jul 6, 2022
30bbdba
Publishing generated metaschema resources [ci skip]
david-waltermire-nist Jul 6, 2022
b580c29
Bump ajv-cli from 4.2.0 to 5.0.0 in /build (#1354)
dependabot[bot] Jul 13, 2022
93fba71
Bump peter-evans/create-issue-from-file from 3.0.0 to 4 (#1355)
dependabot[bot] Jul 13, 2022
1fe199e
Bump actions/setup-java from 2 to 3 (#1360)
dependabot[bot] Jul 13, 2022
8a7861e
Bump actions/setup-node from 2 to 3 (#1359)
dependabot[bot] Jul 13, 2022
68df9f1
Bump stefanzweifel/git-auto-commit-action from 4.9.2 to 4.14.1 (#1357)
dependabot[bot] Jul 13, 2022
fecbe3c
Bump github.com/gohugoio/hugo from 0.83.1 to 0.101.0 in /build (#1358)
dependabot[bot] Jul 14, 2022
a199209
Updating to latest metaschema toolchain. Resolves 1338
david-waltermire Jul 14, 2022
84d2d46
Fixes to correct metaschema validation errors.
david-waltermire Jul 14, 2022
c3674b6
Publishing generated metaschema resources [ci skip]
david-waltermire-nist Jul 14, 2022
29a7f7a
Bump Saxon-HE from 10.6 to 10.8 in /build (#1375)
dependabot[bot] Jul 15, 2022
d8181a0
Bump actions/setup-node from 3.4.0 to 3.4.1 (#1374)
dependabot[bot] Jul 15, 2022
d8a7b03
Bump xmlcalabash from 1.2.5-100 to 1.4.1-100 in /build (#1363)
dependabot[bot] Jul 15, 2022
de301e5
Bump golang from 1.18.3-bullseye to 1.18.4-bullseye in /build (#1361)
dependabot[bot] Jul 15, 2022
4e5296a
Update metaschema-docs
david-waltermire Jul 22, 2022
3b5e6a2
Profile Resolution Spec clarification: validation of imported catalog…
wendellpiez Jul 25, 2022
c87f267
Clarify how to determine target catalog `oscal-version` (#1386)
david-waltermire Jul 25, 2022
1212030
Profile Resolution spec: updated names of 'remove' directives (#1381)
wendellpiez Jul 25, 2022
bd33bf7
Test finish phase, plus minor XSLT enhancements and fixes (#1377)
galtm Jul 25, 2022
930fdac
Follow keep instruction for back-matter resources (#1378)
galtm Jul 25, 2022
01916ee
Bump lycheeverse/lychee-action from 1.5.0 to 1.5.1 (#1390)
dependabot[bot] Aug 11, 2022
f3df74b
Bump golang from 1.18.4-bullseye to 1.19.0-bullseye in /build (#1402)
dependabot[bot] Aug 11, 2022
b70886e
Add remarks field to Profile model modify.alter (add/remove). #1018 (…
Aug 11, 2022
d93ecdb
Publishing generated metaschema resources [ci skip]
david-waltermire-nist Aug 11, 2022
b413079
Profile alter model adjustments (#1418)
david-waltermire Aug 17, 2022
0c1720d
Publishing generated metaschema resources [ci skip]
david-waltermire-nist Aug 17, 2022
2d68868
Added legacy Withdrawn status with deprecation entry (#1419)
david-waltermire Aug 18, 2022
967c1bc
Bump actions/github-script from 6.1.0 to 6.1.1 (#1415)
dependabot[bot] Aug 21, 2022
05082b1
Add grouping construct to props for usnistgov/OSCAL#1064. (#1412)
aj-stein-nist Aug 21, 2022
6d19f84
Updates mapping model documentation to fix a copy and paste error. (#…
david-waltermire Aug 21, 2022
1b53dd9
Publishing generated metaschema resources [ci skip]
david-waltermire-nist Aug 21, 2022
32fbf44
Add assessment-assets assembly to local-definitions assembly in POAM …
Aug 21, 2022
e77b4d9
Publishing generated metaschema resources [ci skip]
david-waltermire-nist Aug 21, 2022
81cd54e
Fixing broken links
david-waltermire Aug 23, 2022
522a9de
Fixed broken links.
david-waltermire Aug 23, 2022
753b485
More broken link fixes.
david-waltermire Aug 23, 2022
f034b0e
Adding link to whitelist
david-waltermire Aug 23, 2022
ba6ca74
Bump actions/cache from 3.0.5 to 3.0.8 (#1422)
dependabot[bot] Aug 23, 2022
feb8356
Bump actions/setup-go from 3.2.0 to 3.3.0 (#1425)
dependabot[bot] Aug 25, 2022
c040810
Create `<define-assembly name="impact">` (fix #1129) (#1171)
guyzyl Aug 25, 2022
290f476
Publishing generated metaschema resources [ci skip]
david-waltermire-nist Aug 25, 2022
ca4e5d3
imported-from relations for usnistgov/OSCAL#1023. (#1403)
aj-stein-nist Aug 31, 2022
b231958
Fixed errors in profile resolution top-level tests based on content e…
david-waltermire Sep 9, 2022
c38aa86
Update metaschema submodule for usnistgov/OSCAL#1454. (#1455)
aj-stein-nist Sep 19, 2022
a71fb59
Publishing generated metaschema resources [ci skip]
aj-stein-nist Sep 19, 2022
cf3f589
Added JSON value key for relationship type. This missing value key wa…
david-waltermire Sep 20, 2022
2da4e5f
Publishing generated metaschema resources [ci skip]
david-waltermire-nist Sep 20, 2022
bb8f427
Add actions assembly to encode an action (i.e. approval) and its role…
aj-stein-nist Sep 26, 2022
a74ecba
Publishing generated metaschema resources [ci skip]
david-waltermire-nist Sep 26, 2022
0890e8e
Implement opr:oscal-version and v:compare functions. (#1420)
galtm Sep 27, 2022
d1902c3
Updates to OSCAL Metaschema documentation and constraints (#1263)
david-waltermire Sep 27, 2022
5359f23
Test modify phase, plus minor XSLT enhancements (#1321)
galtm Sep 27, 2022
aabdf59
Publishing generated metaschema resources [ci skip]
david-waltermire-nist Sep 27, 2022
d3e8b7c
Bump actions/cache from 3.0.8 to 3.0.10 (#1486)
dependabot[bot] Oct 4, 2022
1151670
Bump ncipollo/release-action from 1.10.0 to 1.11.0 (#1487)
dependabot[bot] Oct 4, 2022
58c0480
Bump actions/github-script from 6.1.1 to 6.3.1 (#1485)
dependabot[bot] Oct 4, 2022
ad55bb8
Bump actions/setup-node from 3.4.1 to 3.5.0 (#1481)
dependabot[bot] Oct 4, 2022
6f917b3
Bump actions/setup-java from 3.4.1 to 3.5.1 (#1476)
dependabot[bot] Oct 4, 2022
7f743f1
Bump actions/checkout from 3.0.2 to 3.1.0 (#1488)
dependabot[bot] Oct 4, 2022
154fedb
Bump stefanzweifel/git-auto-commit-action from 4.14.1 to 4.15.0 (#1472)
dependabot[bot] Oct 4, 2022
2ffcbc7
Bump golang from 1.19.0-bullseye to 1.19.1-bullseye in /build (#1446)
dependabot[bot] Oct 4, 2022
f9bd5c1
Updated data type documentation adding a note about why NCName was de…
david-waltermire Oct 4, 2022
d81db4f
Bump github.com/gohugoio/hugo from 0.101.0 to 0.104.3 in /build (#1489)
dependabot[bot] Oct 4, 2022
fe78fc4
Bump golang from 1.19.1-bullseye to 1.19.2-bullseye in /build (#1491)
dependabot[bot] Oct 5, 2022
b3ad45a
Bump xmlcalabash from 1.4.1-100 to 1.5.1-100 in /build (#1492)
dependabot[bot] Oct 5, 2022
c87aee2
Bump stefanzweifel/git-auto-commit-action from 4.15.0 to 4.15.1 (#1500)
dependabot[bot] Oct 11, 2022
96bae32
Bump actions/github-script from 6.3.1 to 6.3.2 (#1504)
dependabot[bot] Oct 12, 2022
f48ad70
Bump actions/github-script from 6.3.2 to 6.3.3 (#1510)
dependabot[bot] Oct 17, 2022
c692d39
Bump actions/cache from 3.0.10 to 3.0.11 (#1512)
dependabot[bot] Oct 17, 2022
ef5aa78
Bump actions/setup-node from 3.5.0 to 3.5.1 (#1511)
dependabot[bot] Oct 17, 2022
7c922c7
Support additional control-origination props #784 (#1460)
Oct 17, 2022
191fe2a
POAM related finding support, fixes #1120 (#1478)
Oct 17, 2022
c2e55c7
Publishing generated metaschema resources [ci skip]
david-waltermire-nist Oct 17, 2022
d9964a8
Fix broken uri-use page links in updated reference docs of develop br…
aj-stein-nist Oct 31, 2022
523f0be
Bump golang from 1.18.3-bullseye to 1.18.4-bullseye in /build (#1361)…
dependabot[bot] Oct 31, 2022
c47ca47
Bump golang from 1.18.3-bullseye to 1.18.4-bullseye in /build (#1361)…
dependabot[bot] Oct 31, 2022
02f8136
Bump golang from 1.18.3-bullseye to 1.18.4-bullseye in /build (#1361)…
dependabot[bot] Oct 31, 2022
6af8024
Bump golang from 1.18.3-bullseye to 1.18.4-bullseye in /build (#1361)…
dependabot[bot] Oct 31, 2022
005cbc3
Bump golang from 1.18.3-bullseye to 1.18.4-bullseye in /build (#1361)…
dependabot[bot] Oct 31, 2022
198ba42
Publishing generated metaschema resources [ci skip]
oscalbuilder Oct 31, 2022
b82dbc1
Bump golang from 1.18.3-bullseye to 1.18.4-bullseye in /build (#1361)…
dependabot[bot] Nov 1, 2022
b8b41b5
Add profile checks with Schematron for usnistgov/oscal-content#128. (…
aj-stein-nist Nov 1, 2022
0737e61
reduced the amount of 'OSCAL' references in data type documentation. …
david-waltermire Nov 1, 2022
0ffe906
Bump peaceiris/actions-gh-pages from 3.8.0 to 3.9.0 (#1537)
dependabot[bot] Nov 1, 2022
edad841
Bump actions/upload-artifact from 3.1.0 to 3.1.1 (#1536)
dependabot[bot] Nov 1, 2022
66c5183
Bump stefanzweifel/git-auto-commit-action from 4.15.1 to 4.15.3 (#1535)
dependabot[bot] Nov 1, 2022
8d1c987
Add possible Schematron documentation checks (#1501)
aj-stein-nist Nov 1, 2022
7d7a672
Publishing generated metaschema resources [ci skip]
oscalbuilder Nov 1, 2022
295c609
Added resource-fragment flag to link. (#1527)
david-waltermire Nov 1, 2022
1a6f5cd
Publishing generated metaschema resources [ci skip]
oscalbuilder Nov 1, 2022
1ac9ce6
Bump golang from 1.19.2-bullseye to 1.19.3-bullseye in /build (#1538)
dependabot[bot] Nov 2, 2022
39b9d8e
Adds a constraint and index of by-component objects to support provid…
Nov 2, 2022
c24dd1e
Bump actions/setup-java from 3.6.0 to 3.7.0 (#1566)
dependabot[bot] Dec 7, 2022
d104822
Bump ncipollo/release-action from 1.11.0 to 1.11.2 (#1565)
dependabot[bot] Dec 7, 2022
f12ffb3
Bump actions/setup-go from 3.3.1 to 3.4.0 (#1564)
dependabot[bot] Dec 7, 2022
05a6b8a
Bump stefanzweifel/git-auto-commit-action from 4.15.3 to 4.16.0 (#1563)
dependabot[bot] Dec 7, 2022
0e29a87
Bump maven-dependency-plugin from 3.3.0 to 3.4.0 in /build (#1562)
dependabot[bot] Dec 7, 2022
672df8e
Bump github.com/gohugoio/hugo from 0.105.0 to 0.107.0 in /build (#1558)
dependabot[bot] Dec 7, 2022
2b227ac
Bump lycheeverse/lychee-action from 1.5.1 to 1.5.4 (#1547)
dependabot[bot] Dec 7, 2022
1eac90e
Bump actions/setup-java (#1576)
dependabot[bot] Dec 7, 2022
1f1336b
Bump github.com/gohugoio/hugo from 0.107.0 to 0.108.0 in /build (#1578)
dependabot[bot] Dec 7, 2022
2569057
Bump golang from 1.19.3-bullseye to 1.19.4-bullseye in /build (#1577)
dependabot[bot] Dec 7, 2022
bbdb74d
Fixed syntax errors in metapaths (#1574)
david-waltermire Dec 7, 2022
46700ba
Fixed improper use of allowed-values/allow-other. Ensured that all pr…
david-waltermire Dec 7, 2022
1a21bcf
Bump xmlcalabash from 1.5.1-100 to 1.5.3-110 in /build (#1575)
dependabot[bot] Dec 7, 2022
eb38225
Publishing generated metaschema resources [ci skip]
oscalbuilder Dec 7, 2022
2fbaae0
Fix rel path from XSLT transform source issue, fix usnistgov/OSCAL#16…
aj-stein-nist Jan 9, 2023
dd6486a
Fix Docker container build for local dev and debugging (#1598)
aj-stein-nist Jan 9, 2023
c36fd37
Bump actions/setup-go from 3.4.0 to 3.5.0 (#1586)
dependabot[bot] Jan 11, 2023
f977fea
Bump actions/cache from 3.0.11 to 3.2.3 (#1607)
dependabot[bot] Jan 11, 2023
5983454
Bump docs/themes/uswds from `631e114` to `ac7915f` (#1606)
dependabot[bot] Jan 11, 2023
265a541
Bump actions/checkout from 3.1.0 to 3.3.0 (#1601)
dependabot[bot] Jan 11, 2023
726ee96
Bump actions/setup-java from 3.8.0 to 3.9.0 (#1587)
dependabot[bot] Jan 11, 2023
b959aec
Bump ncipollo/release-action from 1.11.2 to 1.12.0 (#1583)
dependabot[bot] Jan 11, 2023
7bb0342
Bump golang from 1.19.4-bullseye to 1.19.5-bullseye in /build (#1609)
dependabot[bot] Jan 11, 2023
6ba5bcf
Bump github.com/gohugoio/hugo from 0.108.0 to 0.109.0 in /build (#1593)
dependabot[bot] Jan 11, 2023
50f9b82
Bump peaceiris/actions-gh-pages from 3.9.0 to 3.9.1 (#1610)
dependabot[bot] Jan 12, 2023
1caa849
Bump maven-dependency-plugin from 3.4.0 to 3.5.0 in /build (#1613)
dependabot[bot] Jan 12, 2023
e2db9e4
Bump actions/upload-artifact from 3.1.1 to 3.1.2 (#1612)
dependabot[bot] Jan 12, 2023
fee6dd1
Bump actions/setup-node from 3.5.1 to 3.6.0 (#1611)
dependabot[bot] Jan 12, 2023
4d9c460
Bump peaceiris/actions-gh-pages from 3.9.1 to 3.9.2 (#1616)
dependabot[bot] Jan 19, 2023
45e1c2c
Bump github.com/gohugoio/hugo from 0.109.0 to 0.110.0 in /build (#1617)
dependabot[bot] Jan 23, 2023
5afde6c
Bump actions/github-script from 6.3.3 to 6.4.0 (#1628)
dependabot[bot] Jan 27, 2023
411da8a
Bump xmlcalabash from 1.5.3-110 to 1.5.6-120 in /build
dependabot[bot] May 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/issue-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
if: github.event.action == 'opened'
steps:
- name: Add New Issues to Issue Triage Board
uses: peter-evans/create-or-update-project-card@866533e2ae61f13c35fd1d374049713fab43c729
uses: peter-evans/create-or-update-project-card@5eacbbd224b7814354861b555cc18a8359e2cebe
with:
project-name: Issue Triage
column-name: Needs Triage
removeCard:
runs-on: ubuntu-20.04
if: github.event.action == 'closed'
steps:
- uses: alex-page/github-project-automation-plus@bb266ff4dde9242060e2d5418e120a133586d488
- uses: alex-page/github-project-automation-plus@1f8873e97e3c8f58161a323b7c568c1f623a1c4d
with:
project: Issue Triage
column: Done
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
# use this for main repo master builds
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
path: ${{ env.OSCAL_HOME }}
submodules: recursive
Expand All @@ -38,14 +38,14 @@ jobs:
bash "${OSCAL_CICD_PATH}/package-release.sh" "${OSCAL_WORKING_PATH}"
tar -jcvf "${OSCAL_WORKING_PATH}/${RELEASE_NAME}.tar.bz2" -C "${OSCAL_WORKING_PATH}/archive" .
(cd "${OSCAL_WORKING_PATH}/archive" && zip -r "../${RELEASE_NAME}.zip" .)
- uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
with:
name: release-artifacts
path: |
${{ env.OSCAL_WORKING_PATH }}/${{ env.RELEASE_NAME }}.tar.bz2
${{ env.OSCAL_WORKING_PATH }}/${{ env.RELEASE_NAME }}.zip
retention-days: 5
- uses: ncipollo/release-action@58ae73b360456532aafd58ee170c045abbeaee37
- uses: ncipollo/release-action@a2e71bdd4e7dab70ca26a852f29600c98b33153e
with:
name: OSCAL ${{ env.RELEASE_VERSION }} Release
allowUpdates: false
Expand Down
26 changes: 19 additions & 7 deletions .github/workflows/workflow-generate-metaschema-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
# use this for builds triggered from the UI on protected branches
- name: Checkout Latest (using COMMIT_TOKEN)
if: github.event_name == 'workflow_dispatch' && github.event.inputs.commit_resources == 'true'
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
path: ${{ env.CHECKOUT_PATH }}
token: ${{ secrets.COMMIT_TOKEN }}
Expand All @@ -45,7 +45,7 @@ jobs:
# use this for builds triggered from other workflows on protected branches
- name: Checkout Latest (using access_token)
if: github.event_name == 'push' && inputs.commit_resources == true
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
path: ${{ env.CHECKOUT_PATH }}
token: ${{ secrets.access_token }}
Expand All @@ -54,7 +54,7 @@ jobs:
# use this for overything else (i.e., pull requests) where publication is not needed
- name: Checkout Latest
if: steps.checkout_latest_workflow.conclusion == 'skipped' && steps.checkout_latest_push.conclusion == 'skipped'
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
path: ${{ env.CHECKOUT_PATH }}
submodules: recursive
Expand All @@ -66,7 +66,7 @@ jobs:
# -------------------------
# Java JDK 11
- name: Set up JDK
uses: actions/setup-java@f0bb91606209742fe3ea40199be2f3ef195ecabf
uses: actions/setup-java@1df8dbefe2a8cbc99770194893dd902763bee34b
with:
java-version: 11
distribution: 'temurin'
Expand All @@ -77,7 +77,7 @@ jobs:
mkdir -p "${JAVA_CLASSPATH}"
mvn dependency:copy-dependencies -DoutputDirectory="${JAVA_CLASSPATH}"
- name: Set up NodeJS
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
with:
node-version-file: '${{ env.CHECKOUT_PATH }}/build/.nvmrc'
cache: 'npm'
Expand Down Expand Up @@ -119,18 +119,30 @@ jobs:
run: |
zip ${{ runner.temp }}/metaschema-artifacts.zip -r xml/schema/*.xsd json/schema/*.json xml/convert/*.xsl json/convert/*.xsl
working-directory: ${{ env.CHECKOUT_PATH }}
- uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
- name: Zip Schematron Validation Results for Debugging
if: always()
run: |
zip ${{ runner.temp }}/schematron-validations.zip -r ${{ runner.temp }} build/metaschema/toolchains/xslt-M4/validate/metaschema-composition-check-compiled.xsl
working-directory: ${{ env.CHECKOUT_PATH }}
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
with:
name: schemas-and-converters
path: |
${{ runner.temp }}/metaschema-artifacts.zip
retention-days: 5
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
if: always()
with:
name: schematron-validation-reports
path: |
${{ runner.temp }}/schematron-validations.zip
retention-days: 5
# Store Built Artifacts
# ---------------
- name: Publish Schemas and Converters
# only do this on master
if: github.event.inputs.commit_resources == 'true' || inputs.commit_resources == true
uses: stefanzweifel/git-auto-commit-action@be7095c202abcf573b09f20541e0ee2f6a3a9d9b
uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a
with:
repository: ${{ env.CHECKOUT_PATH }}
file_pattern: xml json
Expand Down
23 changes: 14 additions & 9 deletions .github/workflows/workflow-generate-website-reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ jobs:
# 2) The target branch where the metaschemas exist that are the basis of reference information.
# Checkout the current branch for reading
- name: Checkout Latest
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
path: ${{ env.BRANCH_PATH }}
submodules: recursive
fetch-depth: 0 # this ensures that the tag and commit history are available
# use this for builds triggered from the UI on protected branches
- name: Checkout Main (using COMMIT_TOKEN)
if: github.event_name == 'workflow_dispatch' && github.event.inputs.commit_resources == 'true'
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
path: ${{ env.MAIN_PATH }}
ref: ${{ env.MAIN_BRANCH_REF }}
Expand All @@ -59,7 +59,7 @@ jobs:
# use this for builds triggered from other workflows on protected branches
- name: Checkout Main (using access_token)
if: github.event_name == 'push' && inputs.commit_resources == true
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
path: ${{ env.MAIN_PATH }}
ref: ${{ env.MAIN_BRANCH_REF }}
Expand All @@ -69,7 +69,7 @@ jobs:
# use this for overything else (i.e., pull requests) where publication is not needed
- name: Checkout Main
if: steps.checkout_main_workflow.conclusion == 'skipped' && steps.checkout_main_push.conclusion == 'skipped'
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
path: ${{ env.MAIN_PATH }}
ref: ${{ env.MAIN_BRANCH_REF }}
Expand All @@ -82,7 +82,7 @@ jobs:
# -------------------------
# Java JDK 11
- name: Set up JDK
uses: actions/setup-java@f0bb91606209742fe3ea40199be2f3ef195ecabf
uses: actions/setup-java@1df8dbefe2a8cbc99770194893dd902763bee34b
with:
java-version: 11
distribution: 'temurin'
Expand All @@ -94,7 +94,7 @@ jobs:
mvn dependency:copy-dependencies -DoutputDirectory="${JAVA_CLASSPATH}"
# Install Hugo
- name: Store Hugo Executable in Cache
uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12
with:
path: /home/runner/go/bin/hugo
key: ${{ runner.os }}-hugo-${{ hashFiles(format('{0}/build/go.sum', env.BRANCH_PATH)) }}
Expand All @@ -105,7 +105,7 @@ jobs:
echo "/home/runner/go/bin" >> $GITHUB_PATH
- name: Setup Golang
if: steps.cache-hugo.outputs.cache-hit != 'true'
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
with:
go-version-file: '${{ env.BRANCH_PATH }}/build/go.mod'
cache: true
Expand All @@ -115,6 +115,11 @@ jobs:
run: |
cd "${{ env.BRANCH_PATH }}/build"
go install -tags "extended" github.com/gohugoio/hugo
- name: Setup Swap Space
# Since Hugo is requiring more memory
uses: pierotofy/set-swap-space@49819abfb41bd9b44fb781159c033dba90353a7c
with:
swap-size-gb: 10
# Build Artifacts
# ---------------
- name: Generate Model Reference Documentation
Expand Down Expand Up @@ -144,7 +149,7 @@ jobs:
run: |
zip ${{ runner.temp }}/metaschema-website.zip -r public/
working-directory: ${{ env.MAIN_PATH }}/docs
- uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
with:
name: website
path: |
Expand All @@ -153,7 +158,7 @@ jobs:
- name: Publish Generated Pages
# only do this on master
if: github.event.inputs.commit_resources == 'true' || inputs.commit_resources == true
uses: stefanzweifel/git-auto-commit-action@be7095c202abcf573b09f20541e0ee2f6a3a9d9b
uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a
with:
repository: ${{ env.MAIN_PATH }}
file_pattern: docs
Expand Down
35 changes: 20 additions & 15 deletions .github/workflows/workflow-generate-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,23 @@ jobs:
# use this for builds triggered from the UI on protected branches
- name: Checkout Latest (using COMMIT_TOKEN)
if: github.event_name == 'workflow_dispatch' && github.event.inputs.commit_resources == 'true'
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
token: ${{ secrets.COMMIT_TOKEN }}
submodules: recursive
id: checkout_latest_workflow
# use this for builds triggered from other workflows on protected branches
- name: Checkout Latest (using access_token)
if: github.event_name == 'push' && inputs.commit_resources == true
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
token: ${{ secrets.access_token }}
submodules: recursive
id: checkout_latest_push
# use this for overything else (i.e., pull requests) where publication is not needed
- name: Checkout Latest
if: steps.checkout_latest_workflow.conclusion == 'skipped' && steps.checkout_latest_push.conclusion == 'skipped'
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
submodules: recursive
- name: Set env
Expand All @@ -76,7 +76,7 @@ jobs:
# -------------------------
# Java JDK 11
- name: Set up JDK
uses: actions/setup-java@f0bb91606209742fe3ea40199be2f3ef195ecabf
uses: actions/setup-java@1df8dbefe2a8cbc99770194893dd902763bee34b
with:
java-version: 11
distribution: 'temurin'
Expand All @@ -86,20 +86,25 @@ jobs:
cd "${BUILD_PATH}"
mkdir -p "${JAVA_CLASSPATH}"
mvn dependency:copy-dependencies -DoutputDirectory="${JAVA_CLASSPATH}"
- name: Setup Swap Space
# Since Hugo is requiring more memory
uses: pierotofy/set-swap-space@49819abfb41bd9b44fb781159c033dba90353a7c
with:
swap-size-gb: 10
# Build Artifacts
# ---------------
- name: Generate specification documentation
run: |
bash "${CICD_PATH}/generate-specification-documentation.sh"
- uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
with:
name: specification-docs
path: |
docs/content/concepts/processing/profile-resolution.html
retention-days: 5
# Install Hugo
- name: Store Hugo Executable in Cache
uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12
with:
path: /home/runner/go/bin/hugo
key: ${{ runner.os }}-hugo-${{ hashFiles(format('{0}/go.sum', env.BUILD_PATH)) }}
Expand All @@ -110,7 +115,7 @@ jobs:
echo "/home/runner/go/bin" >> $GITHUB_PATH
- name: Setup Golang
if: steps.cache-hugo.outputs.cache-hit != 'true'
uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
with:
go-version-file: '${{ env.BUILD_PATH }}/go.mod'
cache: true
Expand All @@ -128,38 +133,38 @@ jobs:
run: |
zip ${{ runner.temp }}/metaschema-website.zip -r public/
working-directory: ${{ github.workspace }}/docs
- uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
with:
name: website
path: |
${{ runner.temp }}/metaschema-website.zip
retention-days: 5
- name: Link Checker
id: linkchecker
uses: lycheeverse/lychee-action@76ab977fedbeaeb32029313724a2e56a8a393548
uses: lycheeverse/lychee-action@4dcb8bee2a0a4531cba1a1f392c54e8375d6dd81
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 './docs/public/**/*.html' --remap "https://pages.nist.gov/OSCAL/ file://${GITHUB_WORKSPACE}/docs/public/" --exclude-mail
format: markdown
output: html-link-report.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
with:
name: html-link-report
path: html-link-report.md
retention-days: 5
- uses: actions/github-script@7a5c598405937d486b0331594b5da2b14db670da
- uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975
if: steps.linkchecker.outputs.exit_code != 0
with:
script: |
core.setFailed('Link checker detected broken or invalid links, read attached report.')
- uses: actions/github-script@7a5c598405937d486b0331594b5da2b14db670da
- uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975
if: steps.linkchecker.outputs.exit_code != 0 && (github.event.inputs.bad_links_fail_build == 'true' || inputs.bad_links_fail_build == true)
with:
script: |
core.setFailed('Link checker detected broken or invalid links, read attached report.')
- name: Deploy Website (using access_token)
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305
uses: peaceiris/actions-gh-pages@bd8c6b06eba6b3d25d72b7a1767993c0aeee42e7
if: github.event_name == 'push' && inputs.commit_resources == true && github.ref_name == 'main'
with:
github_token: ${{ secrets.access_token }}
Expand All @@ -168,7 +173,7 @@ jobs:
publish_branch: nist-pages
commit_message: Deploying website [ci deploy skip]
- name: Deploy Website (using COMMIT_TOKEN)
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305
uses: peaceiris/actions-gh-pages@bd8c6b06eba6b3d25d72b7a1767993c0aeee42e7
if: github.event_name == 'workflow_dispatch' && github.event.inputs.commit_resources == 'true' && github.ref_name == 'main'
with:
github_token: ${{ secrets.COMMIT_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/workflow-validate-repo-markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
runs-on: ubuntu-20.04
steps:
# use this for pulls where checkout is anonymous
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
submodules: recursive
# Setup runtime environment
# -------------------------
- name: Set up NodeJS
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
with:
node-version-file: 'build/.nvmrc'
cache: 'npm'
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
id: linkchecker
- name: Create issue if bad links detected in repo
if: failure() && inputs.create_issue == true
uses: peter-evans/create-issue-from-file@97e6f902a416aac38834e23fa52e166aad0437d2 # v3.0.0
uses: peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f # v3.0.0
with:
title: Scheduled Check of Markdown Documents Found Bad Hyperlinks
content-filepath: mlc_report.log
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/workflow-validate-website-content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,24 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout Latest
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
fetch-depth: 0 # this ensures that the tag and commit history are available
- name: Checkout git ref of published website content
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
with:
ref: ${{ inputs.site_git_ref }}
path: ${{ inputs.site_git_ref_path }}
- name: Check website HTML content links
id: linkchecker
uses: lycheeverse/lychee-action@76ab977fedbeaeb32029313724a2e56a8a393548
uses: lycheeverse/lychee-action@4dcb8bee2a0a4531cba1a1f392c54e8375d6dd81
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 "./${INPUT_SITE_GIT_REF}/**/*.html" --remap "https://pages.nist.gov/OSCAL/ file://${GITHUB_WORKSPACE}/${INPUT_SITE_GIT_REF}/" --exclude-mail
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create issue if bad links detected
if: steps.linkchecker.outputs.exit_code != 0 && inputs.create_issue
uses: peter-evans/create-issue-from-file@97e6f902a416aac38834e23fa52e166aad0437d2
uses: peter-evans/create-issue-from-file@433e51abf769039ee20ba1293a088ca19d573b7f
with:
title: Scheduled Check of Website Content Found Bad Hyperlinks
content-filepath: ./lychee/out.md
Expand Down
Loading