Skip to content

Commit

Permalink
Update GHA CI/CD checkout for version string (#180)
Browse files Browse the repository at this point in the history
Currently, the locally built copies of the oscal-cli utility does
correctly encode version information based on short ID for commits and
tags. This behavior functions correctly because the git clone for
normal operations retrieves full history so you can properly analyze
commits and find the latest tag.

This behavior does not work with the default behavior (and arguments),
as of actions/checkout@c85c95e, does
not get that history. This commit configures GitHub CI/CD with this
action to fetch the full history of the repo to do it correctly.

See usnistgov/liboscal-java#173 for details.
  • Loading branch information
aj-stein-nist authored Aug 15, 2023
1 parent 991d1ce commit 178ed67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
with:
token: ${{ github.token }}
submodules: recursive
fetch-depth: 0
# -------------------------
# Java Environment Setup
# -------------------------
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
with:
token: ${{ github.token }}
submodules: recursive
fetch-depth: 0
# -------------------------
# Java
# -------------------------
Expand Down

0 comments on commit 178ed67

Please sign in to comment.