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

Fix Broken Booleans Only in workflow_call Conditional Cheecks #1236

Conversation

aj-stein-nist
Copy link
Contributor

@aj-stein-nist aj-stein-nist commented May 6, 2022

Committer Notes

Fix logical bug missed in #1231 to fix for final release. This really closes #1208.

All Submissions:

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you included examples of how to use your new feature(s)?
  • Have you updated all OSCAL website and readme documentation affected by the changes you made? Changes to the OSCAL website can be made in the docs/content directory of your branch.

@aj-stein-nist aj-stein-nist added bug Scope: CI/CD Enhancements to the project's Continuous Integration and Continuous Delivery pipeline. labels May 6, 2022
@aj-stein-nist aj-stein-nist added this to the OSCAL 1.0.3 milestone May 6, 2022
This fix will resolve the issue noticed in the runs post release prep.

https://github.com/usnistgov/OSCAL/runs/6311164174
https://github.com/usnistgov/OSCAL/runs/6311163976

This is a workaround report in this thread.

community/community#9343 (comment)

It pertains to this issue, which has yet to be fixed in GitHub Actions
runners that exhibit a difference in behavior for the same boolean input
being treated as a string in a `workflow_dispatch` `inputs`
(i.e. `github.event.inputs.*`) even if `type: boolean` is set but
behaves properly as intended for `workflow_call` `inputs`
(`inputs.*` which are different in the object graph) and treated as bools
through and through. This is reported in actions/runner#1483.

To resolve this, the buggy `workflow_dispatch` `github.event.inputs.*`
will be left with the workaround as-is, conditional checking the values
as strings, but we revert the changes for `workflow_call` `inputs.*` and
leave them like before until actions/runner#1483 is resolved.
@aj-stein-nist aj-stein-nist force-pushed the issue-1231-bug-fix-workaround-actions-boolean-handling branch from 140f482 to b53f152 Compare May 6, 2022 00:52
@aj-stein-nist
Copy link
Contributor Author

@david-waltermire-nist here is an example of this working. Since I can quickly review all inputs.* versus github.event.inputs.*, I made a tactical series of edits follow the docs referenced and tested.

https://github.com/aj-stein-nist/OSCAL/runs/6315918090?check_suite_focus=true

Sorry, I had to read the docs a few times to realize my error when quickly and ham-fistedly changing all of them during our pairing last night. Not sure you want an issue to remove the kludge for workflow_dispatch inputs once that upstream bug is fixed, let me know in this review and/or elsewhere. 👋

Copy link
Contributor

@david-waltermire david-waltermire left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

@david-waltermire david-waltermire merged commit 219ed22 into usnistgov:release-1.0 May 9, 2022
david-waltermire pushed a commit that referenced this pull request May 9, 2022
…g. (#1236)

This fix will resolve the issue noticed in the runs post release prep.

https://github.com/usnistgov/OSCAL/runs/6311164174
https://github.com/usnistgov/OSCAL/runs/6311163976

This is a workaround report in this thread.

community/community#9343 (comment)

It pertains to this issue, which has yet to be fixed in GitHub Actions
runners that exhibit a difference in behavior for the same boolean input
being treated as a string in a `workflow_dispatch` `inputs`
(i.e. `github.event.inputs.*`) even if `type: boolean` is set but
behaves properly as intended for `workflow_call` `inputs`
(`inputs.*` which are different in the object graph) and treated as bools
through and through. This is reported in actions/runner#1483.

To resolve this, the buggy `workflow_dispatch` `github.event.inputs.*`
will be left with the workaround as-is, conditional checking the values
as strings, but we revert the changes for `workflow_call` `inputs.*` and
leave them like before until actions/runner#1483 is resolved.
Rene2mt pushed a commit to Rene2mt/OSCAL that referenced this pull request May 17, 2022
…g. (usnistgov#1236)

This fix will resolve the issue noticed in the runs post release prep.

https://github.com/usnistgov/OSCAL/runs/6311164174
https://github.com/usnistgov/OSCAL/runs/6311163976

This is a workaround report in this thread.

community/community#9343 (comment)

It pertains to this issue, which has yet to be fixed in GitHub Actions
runners that exhibit a difference in behavior for the same boolean input
being treated as a string in a `workflow_dispatch` `inputs`
(i.e. `github.event.inputs.*`) even if `type: boolean` is set but
behaves properly as intended for `workflow_call` `inputs`
(`inputs.*` which are different in the object graph) and treated as bools
through and through. This is reported in actions/runner#1483.

To resolve this, the buggy `workflow_dispatch` `github.event.inputs.*`
will be left with the workaround as-is, conditional checking the values
as strings, but we revert the changes for `workflow_call` `inputs.*` and
leave them like before until actions/runner#1483 is resolved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Scope: CI/CD Enhancements to the project's Continuous Integration and Continuous Delivery pipeline.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants