License header check needs to account for shebangs other than #!/bin/bash
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- bash
- Domain
- ci-cd
Research direction
Start at .github/workflows/scripts/check-license-header.sh, especially line 98, where the license-header check handles shebangs. Reproduce the behavior with a script using #!/usr/bin/env bash or a non-/bin/bash Bash path, then adjust the check so these portable Bash shebangs are accepted without weakening the license-header validation.
Written by the indexing model from the issue text.
Description
This is overly restrictive:
On some platforms, bash is not located at /bin/bash. For example, on FreeBSD it's at /usr/local/bin/bash, making #!/usr/bin/env bash necessary for maximum portability.
- Dominant language
- Swift
- Stars
- 115
- Forks
- 57
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from swiftlang/github-workflows
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
swiftlang/github-workflows#305 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
swiftlang/github-workflows#258 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
swiftlang/github-workflows#312 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
swiftlang/github-workflows#277 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
swiftlang/github-workflows#267 ·
All issues in swiftlang/github-workflows
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Cocoanetics/SwiftACP#52 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
storyblok/storyblok-swift#12 ·
-
bug yapback
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 95/100