Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Incorrect jq example in README.md

Open
#331 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
45/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
markdown
Domain
documentation

Research direction

Open README.md and inspect the certificate-expiration jq example. Verify the date comparison behavior and update the example so the date values are comparable with jq's now value, then confirm the README shows the intended expired-certificate results.

Written by the indexing model from the issue text.

Description

The top level README.md contains the following example:

# List all Common Names of certificates that are expired
certigo dump --json $INPUT | jq -r '.certificates[] | select(.not_after < now) | .subject.common_name'

This is incorrect because afaik jq cannot compare the JSON string dates with the Unix epoch seconds returned by now. Would have to use fromdate or fromdateiso8601 to make the values comparable.

The use of the incorrect example would likely cause a silent failure since the comparison will be false for pretty much any date string input.

Dominant language
Go
Stars
1k
Forks
75
Avg merge
2d 34m
Merged PRs (30d)
10

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from square/certigo

All issues in square/certigo

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.