-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10261 from ffaf1/git-protocol-check
Add git:// protocol check
- Loading branch information
Showing
7 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# cabal check | ||
The following errors are likely to affect your build negatively: | ||
Error: [git-protocol] Cloning over git:// might lead to an arbitrary code | ||
execution vulnerability. Furthermore, popular forges like GitHub do not | ||
support it. Use https:// or ssh:// instead. | ||
Error: Hackage would reject this package. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Test.Cabal.Prelude | ||
|
||
main = cabalTest $ fails $ cabal "check" [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
cabal-version: 3.0 | ||
name: pkg | ||
version: 0 | ||
category: example | ||
maintainer: [email protected] | ||
synopsis: small synopsis | ||
description: longer description | ||
license: GPL-3.0-only | ||
|
||
library | ||
exposed-modules: Foo | ||
default-language: Haskell2010 | ||
|
||
source-repository head | ||
type: git | ||
location: git://www.example.org/my-repo/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
synopsis: Warn about git:// protocol | ||
packages: cabal-install | ||
prs: #10261 | ||
|
||
description: { | ||
|
||
`cabal check` will warn about insecure git:// protocol in `source-repository`. | ||
|
||
See [Git Book](https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols#_the_cons_4) | ||
for an explanation. | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters