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

✨ 🐛 Reading Go Runtime Details from GOENV #17

Merged
merged 3 commits into from
Nov 17, 2022
Merged

✨ 🐛 Reading Go Runtime Details from GOENV #17

merged 3 commits into from
Nov 17, 2022

Conversation

Templum
Copy link
Owner

@Templum Templum commented Nov 17, 2022

Within my Dockerfile I use the builder pattern, ensuring the action itself is compiled with a golang version I control. The version chosen by the user of the action will be installed in the runtime part of the container, into which I also install the vulncheck cli. Meaning the CLI is run in the correct env, just the output is incorrect. In fix/16 I switched to reading the go env. This contains the actual runtime information that is relevant to govulncheck.

To avoid reading the runtime information of the compiled code vs the real one used by govulncheck
@Templum Templum linked an issue Nov 17, 2022 that may be closed by this pull request
@codecov-commenter
Copy link

Codecov Report

Base: 97.01% // Head: 97.32% // Increases project coverage by +0.30% 🎉

Coverage data is based on head (d9d0b44) compared to base (d00d03e).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
+ Coverage   97.01%   97.32%   +0.30%     
==========================================
  Files           2        3       +1     
  Lines         201      224      +23     
==========================================
+ Hits          195      218      +23     
  Misses          5        5              
  Partials        1        1              
Flag Coverage Δ
unit-tests 97.32% <100.00%> (+0.30%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/action/env.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Templum Templum changed the title ✨ Reading Go Runtime Infos ✨ 🐛 Reading Go Runtime Details from GOENV Nov 17, 2022
@Templum Templum merged commit f115ae3 into main Nov 17, 2022
@Templum Templum deleted the fix/16 branch November 17, 2022 14:27
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.

go version seems not to change with param go-version
2 participants