Skip to content

Commit

Permalink
🐛 Fix issue template ossf link (#83)
Browse files Browse the repository at this point in the history
* Fix issue template ossf link

Signed-off-by: lelia <[email protected]>

* Rebuild js

Signed-off-by: lelia <[email protected]>

* Address review feedback

Signed-off-by: lelia <[email protected]>

* Update outdated snapshots for tests

Signed-off-by: lelia <[email protected]>

* 🌱 Add step to validate the dist folder content (#84)

* ci: add step to validate the dist folder content

Signed-off-by: Ulises Gascón <[email protected]>

* chore: update dist folder

Signed-off-by: Ulises Gascón <[email protected]>

* chore: linting

Signed-off-by: Ulises Gascón <[email protected]>

---------

Signed-off-by: Ulises Gascón <[email protected]>

* Fix merge conflict, rebuild dist files

Signed-off-by: lelia <[email protected]>

---------

Signed-off-by: lelia <[email protected]>
Signed-off-by: Ulises Gascón <[email protected]>
Co-authored-by: Ulises Gascón <[email protected]>
  • Loading branch information
lelia and UlisesGascon authored Jun 25, 2024
1 parent 37cbd35 commit c8380fe
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
15 changes: 10 additions & 5 deletions __tests__/__snapshots__/utils.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ exports[`Utils generateReportContent Should render template with deps.dev as ren
| -- | -- | -- | -- | -- | -- | -- |
| [fake-org/fake-repo](https://github.com/fake-org/fake-repo) | [846b3dd](https://github.com/fake-org/fake-repo/commit/846b3ddb5f75d95235e94d9eb52e920f4a067338) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/fake-org/fake-repo/badge)](https://api.securityscorecards.dev/projects/github.com/fake-org/fake-repo) | 2023-02-20 | 5 / [Details](https://deps.dev/project/github/fake-org%2Ffake-repo) | [View](https://deps.dev/project/github/fake-org%2Ffake-repo) | [Fix it](https://app.stepsecurity.io/securerepo?repo=fake-org/fake-repo) |
_Report generated by [ossf/scorecard-monitor](https://github.com/ossf/scorecard-monitor)._"
_Report generated by [OpenSSF Scorecard Monitor](https://github.com/ossf/scorecard-monitor)._
"
`;

exports[`Utils generateReportContent Should render template with scorecard-visualizer as renderTool 1`] = `
Expand All @@ -21,7 +22,8 @@ exports[`Utils generateReportContent Should render template with scorecard-visua
| -- | -- | -- | -- | -- | -- | -- |
| [fake-org/fake-repo](https://github.com/fake-org/fake-repo) | [846b3dd](https://github.com/fake-org/fake-repo/commit/846b3ddb5f75d95235e94d9eb52e920f4a067338) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/fake-org/fake-repo/badge)](https://api.securityscorecards.dev/projects/github.com/fake-org/fake-repo) | 2023-02-20 | 5 / [Details](https://ossf.github.io/scorecard-visualizer/#/projects/github.com/fake-org/fake-repo/compare/39a08ee8b8d3818677eb823cb566f36b1b1c4671/846b3ddb5f75d95235e94d9eb52e920f4a067338) | [View](https://ossf.github.io/scorecard-visualizer/#/projects/github.com/fake-org/fake-repo/commit/846b3ddb5f75d95235e94d9eb52e920f4a067338) | [Fix it](https://app.stepsecurity.io/securerepo?repo=fake-org/fake-repo) |
_Report generated by [ossf/scorecard-monitor](https://github.com/ossf/scorecard-monitor)._"
_Report generated by [OpenSSF Scorecard Monitor](https://github.com/ossf/scorecard-monitor)._
"
`;

exports[`Utils generateReportContent Should render template with scores and title 1`] = `
Expand All @@ -33,7 +35,8 @@ exports[`Utils generateReportContent Should render template with scores and titl
| -- | -- | -- | -- | -- | -- | -- |
| [fake-org/fake-repo](https://github.com/fake-org/fake-repo) | [846b3dd](https://github.com/fake-org/fake-repo/commit/846b3ddb5f75d95235e94d9eb52e920f4a067338) | 10 | 2023-02-20 | 5 / [Details](https://ossf.github.io/scorecard-visualizer/#/projects/github.com/fake-org/fake-repo/compare/39a08ee8b8d3818677eb823cb566f36b1b1c4671/846b3ddb5f75d95235e94d9eb52e920f4a067338) | [View](https://ossf.github.io/scorecard-visualizer/#/projects/github.com/fake-org/fake-repo/commit/846b3ddb5f75d95235e94d9eb52e920f4a067338) | [Fix it](https://app.stepsecurity.io/securerepo?repo=fake-org/fake-repo) |
_Report generated by [ossf/scorecard-monitor](https://github.com/ossf/scorecard-monitor)._"
_Report generated by [OpenSSF Scorecard Monitor](https://github.com/ossf/scorecard-monitor)._
"
`;

exports[`Utils generateReportContent Should render template with scores only 1`] = `
Expand All @@ -45,7 +48,8 @@ exports[`Utils generateReportContent Should render template with scores only 1`]
| -- | -- | -- | -- | -- | -- | -- |
| [fake-org/fake-repo](https://github.com/fake-org/fake-repo) | [846b3dd](https://github.com/fake-org/fake-repo/commit/846b3ddb5f75d95235e94d9eb52e920f4a067338) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/fake-org/fake-repo/badge)](https://api.securityscorecards.dev/projects/github.com/fake-org/fake-repo) | 2023-02-20 | 5 / [Details](https://ossf.github.io/scorecard-visualizer/#/projects/github.com/fake-org/fake-repo/compare/39a08ee8b8d3818677eb823cb566f36b1b1c4671/846b3ddb5f75d95235e94d9eb52e920f4a067338) | [View](https://ossf.github.io/scorecard-visualizer/#/projects/github.com/fake-org/fake-repo/commit/846b3ddb5f75d95235e94d9eb52e920f4a067338) | [Fix it](https://app.stepsecurity.io/securerepo?repo=fake-org/fake-repo) |
_Report generated by [ossf/scorecard-monitor](https://github.com/ossf/scorecard-monitor)._"
_Report generated by [OpenSSF Scorecard Monitor](https://github.com/ossf/scorecard-monitor)._
"
`;

exports[`Utils generateReportContent Should render template with title only 1`] = `
Expand All @@ -54,5 +58,6 @@ exports[`Utils generateReportContent Should render template with title only 1`]
## Summary
_Report generated by [ossf/scorecard-monitor](https://github.com/ossf/scorecard-monitor)._"
_Report generated by [OpenSSF Scorecard Monitor](https://github.com/ossf/scorecard-monitor)._
"
`;
2 changes: 1 addition & 1 deletion dist/issue.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ There are changes in the following repositories:
| [<%= score.org %>/<%= score.repo %>](https://<%= score.platform %>/<%= score.org %>/<%= score.repo %>) | [<%= score.commit.slice(0, 7) %>](https://<%= score.platform %>/<%= score.org %>/<%= score.repo %>/commit/<%= score.commit %>) | <% if (!renderBadge) { -%><%= score.score %> <%_ } -%> <%_ if (renderBadge) { -%> [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/<%= score.org %>/<%= score.repo %>/badge)](https://api.securityscorecards.dev/projects/github.com/<%= score.org %>/<%= score.repo %>) <%_ } -%> | <%= score.currentDiff || 0 %><%_ if (score.prevCommit) { -%> / [Details](<%= getReportUrl(score.org, score.repo, score.commit, score.prevCommit) %>)<%_ } -%> | [View](<%= getReportUrl(score.org, score.repo, score.commit) %>) | [Fix it](https://app.stepsecurity.io/securerepo?repo=<%= score.org %>/<%= score.repo %>) |
<%_ }); -%>
_Report generated by [ossf/scorecard-monitor.com/ossf/scorecard-mossf/scorecard-monitor
_Report generated by [OpenSSF Scorecard Monitor](https://github.com/ossf/scorecard-monitor)._
2 changes: 1 addition & 1 deletion dist/report.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
| [<%= score.org %>/<%= score.repo %>](https://<%= score.platform %>/<%= score.org %>/<%= score.repo %>) | [<%= score.commit.slice(0, 7) %>](https://<%= score.platform %>/<%= score.org %>/<%= score.repo %>/commit/<%= score.commit %>) | <% if (!renderBadge) { -%><%= score.score %> <%_ } -%><% if (renderBadge) { -%> [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/<%= score.org %>/<%= score.repo %>/badge)](https://api.securityscorecards.dev/projects/github.com/<%= score.org %>/<%= score.repo %>) <%_ } -%> | <%= score.date %> | <%= score.currentDiff || 0 %> <%_ if (score.prevCommit) { -%> / [Details](<%= getReportUrl(score.org, score.repo, score.commit, score.prevCommit) %>)<%_ } -%> | [View](<%= getReportUrl(score.org, score.repo, score.commit) %>) | [Fix it](https://app.stepsecurity.io/securerepo?repo=<%= score.org %>/<%= score.repo %>) |
<%_ }); -%>
_Report generated by [ossf/scorecard-monitor](https://github.com/ossf/scorecard-monitor)._
_Report generated by [OpenSSF Scorecard Monitor](https://github.com/ossf/scorecard-monitor)._
2 changes: 1 addition & 1 deletion templates/issue.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ There are changes in the following repositories:
| [<%= score.org %>/<%= score.repo %>](https://<%= score.platform %>/<%= score.org %>/<%= score.repo %>) | [<%= score.commit.slice(0, 7) %>](https://<%= score.platform %>/<%= score.org %>/<%= score.repo %>/commit/<%= score.commit %>) | <% if (!renderBadge) { -%><%= score.score %> <%_ } -%> <%_ if (renderBadge) { -%> [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/<%= score.org %>/<%= score.repo %>/badge)](https://api.securityscorecards.dev/projects/github.com/<%= score.org %>/<%= score.repo %>) <%_ } -%> | <%= score.currentDiff || 0 %><%_ if (score.prevCommit) { -%> / [Details](<%= getReportUrl(score.org, score.repo, score.commit, score.prevCommit) %>)<%_ } -%> | [View](<%= getReportUrl(score.org, score.repo, score.commit) %>) | [Fix it](https://app.stepsecurity.io/securerepo?repo=<%= score.org %>/<%= score.repo %>) |
<%_ }); -%>
_Report generated by [ossf/scorecard-monitor.com/ossf/scorecard-mossf/scorecard-monitor
_Report generated by [OpenSSF Scorecard Monitor](https://github.com/ossf/scorecard-monitor)._
2 changes: 1 addition & 1 deletion templates/report.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
| [<%= score.org %>/<%= score.repo %>](https://<%= score.platform %>/<%= score.org %>/<%= score.repo %>) | [<%= score.commit.slice(0, 7) %>](https://<%= score.platform %>/<%= score.org %>/<%= score.repo %>/commit/<%= score.commit %>) | <% if (!renderBadge) { -%><%= score.score %> <%_ } -%><% if (renderBadge) { -%> [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/<%= score.org %>/<%= score.repo %>/badge)](https://api.securityscorecards.dev/projects/github.com/<%= score.org %>/<%= score.repo %>) <%_ } -%> | <%= score.date %> | <%= score.currentDiff || 0 %> <%_ if (score.prevCommit) { -%> / [Details](<%= getReportUrl(score.org, score.repo, score.commit, score.prevCommit) %>)<%_ } -%> | [View](<%= getReportUrl(score.org, score.repo, score.commit) %>) | [Fix it](https://app.stepsecurity.io/securerepo?repo=<%= score.org %>/<%= score.repo %>) |
<%_ }); -%>
_Report generated by [ossf/scorecard-monitor](https://github.com/ossf/scorecard-monitor)._
_Report generated by [OpenSSF Scorecard Monitor](https://github.com/ossf/scorecard-monitor)._

0 comments on commit c8380fe

Please sign in to comment.