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

Add a simple CSV format template to the templates/ directory and tweak docs #1366

Merged
merged 2 commits into from
Jun 29, 2023

Conversation

tgerla
Copy link
Contributor

@tgerla tgerla commented Jun 28, 2023

  • add the csv.tmpl to templates/ directory
  • edit README.md to match

…k docs.

Signed-off-by: Timothy Gerla <tim@gerla.net>
README.md Outdated
@@ -271,7 +271,7 @@ Grype lets you define custom output formats, using [Go templates](https://golang

**Please note:** Templates can access information about the system they are running on, such as environment variables. You should never run untrusted templates.

Here's what the `csv.tmpl` file might look like:
There are several example templates in the [templates/](https://github.com/anchore/grype/tree/main/templates) directory. Here's what the `(csv.tmpl)[https://github.com/anchore/grype/blob/main/templates/csv.tmpl]` file looks like:

```gotemplate
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we take the example out of the readme and just point users to the templates directory to see examples? If nothing else, it at least eliminates one location to update if the data model ever changes enough that these need to be updated

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, that's a good idea, I will update the patch.

Signed-off-by: Timothy Gerla <tim@gerla.net>
@tgerla tgerla merged commit ecf9e65 into anchore:main Jun 29, 2023
spiffcs added a commit to shanedell/grype that referenced this pull request Jul 11, 2023
* main: (23 commits)
  Remove Docker section from DEVELOPING.md (anchore#1384)
  chore(deps): update bootstrap tools to latest versions (anchore#1381)
  chore(deps): bump github.com/docker/docker (anchore#1382)
  Port to new syft source API (anchore#1376)
  chore(deps): bump golang.org/x/term from 0.9.0 to 0.10.0 (anchore#1375)
  chore: bump quality gate labels and images (anchore#1374)
  chore(deps): update bootstrap tools to latest versions (anchore#1368)
  Add a simple CSV format template to the templates/ directory and tweak docs (anchore#1366)
  chore(deps): update Syft to v0.84.1 (anchore#1372)
  fix: Add more log4j-adjacent package ignore rules (anchore#1358)
  chore: bump the quality gate labels (anchore#1369)
  add oss community board auto-add workflow (anchore#1364)
  fix: totals for vulnerability matches (anchore#1359)
  chore(deps): bump ossf/scorecard-action from 2.1.3 to 2.2.0 (anchore#1363)
  chore(deps): bump anchore/sbom-action from 0.14.2 to 0.14.3 (anchore#1357)
  Configure chronicle to pre-1.0 mode (anchore#1356)
  chore(deps): update Syft to v0.84.0 (anchore#1354)
  chore(deps): update bootstrap tools to latest versions (anchore#1353)
  chore(deps): update Syft to v0.83.1 (anchore#1352)
  chore(deps): bump golang.org/x/term from 0.8.0 to 0.9.0 (anchore#1350)
  ...
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.

2 participants