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

Add two additional PATH env checks for the rule 'os-04'

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

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
58/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
ruby

Research direction

Start by locating the os-04 PATH environment-variable check in the InSpec profile and inspect how its split values are currently tested. Add coverage for the two requested conditions and verify that the applicable profile checks pass with the expected PATH validation.

Written by the indexing model from the issue text.

Description

enhancement
Description

I suggest adding two checks for the rule 'os-04' for PATH environment variable:

  • check that there are no spaces;
  • check that there are no '..' (parent directory of the current one).

I guess it won't be superfluous.

Solution

Can be easily solved as:

...
    its('split') { should_not include(' ') }
    its('split') { should_not include('..') }
...
Dominant language
Ruby
Stars
876
Forks
194
Avg merge
9m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 dev-sec/linux-baseline

All issues in dev-sec/linux-baseline

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.