Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit 578ee4b

Browse files
authored
Update readme with verification steps (#430)
1 parent ce0eb06 commit 578ee4b

File tree

1 file changed

+29
-8
lines changed

1 file changed

+29
-8
lines changed

readme.md

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
Codecov Global Uploader
22
=======================
3+
### Upload reports to Codecov for almost every supported language.
34
[![codecov](https://codecov.io/gh/codecov/codecov-bash/branch/master/graph/badge.svg?token=iEvSTnW9Qm)](https://codecov.io/gh/codecov/codecov-bash)
45

5-
> Upload reports to Codecov for almost every supported language.
6-
76
[Deployed Version](https://codecov.io/bash)
87

8+
## Running the bash uploader
99

10-
SHA1Sum: [hash file](https://raw.githubusercontent.com/codecov/codecov-bash/master/SHA1SUM)
11-
12-
------
13-
10+
-----
1411
```bash
1512
# All CI
1613
bash <(curl -s https://codecov.io/bash)
@@ -24,14 +21,38 @@ curl -s https://codecov.io/bash > .codecov
2421
chmod +x .codecov
2522
./.codecov
2623
```
24+
-----
25+
26+
#### ⚠️ Verifying the bash uploader
27+
As an additional layer of security, users may wish to check the script against the provided SHASUMs.
28+
29+
```bash
30+
curl -fLso codecov https://codecov.io/bash;
31+
VERSION=$(grep -o 'VERSION=\"[0-9\.]*\"' codecov | cut -d'"' -f2);
32+
for i in 1 256 512
33+
do
34+
shasum -a $i -c --ignore-missing <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM")
35+
done
36+
./codecov
37+
```
38+
39+
or for older versions of `shasum`
2740

28-
------
41+
```bash
42+
curl -fLso codecov https://codecov.io/bash;
43+
VERSION=$(grep -o 'VERSION=\"[0-9\.]*\"' codecov | cut -d'"' -f2);
44+
for i in 1 256 512
45+
do
46+
shasum -a $i -c <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM" | grep -w "codecov")
47+
done
48+
./codecov
49+
```
2950

3051
### Languages
3152
> Codecov supports many languages, you can find a full list here: https://docs.codecov.io/docs/supported-languages
3253
3354

34-
### Usage
55+
### Other Usage
3556
> Below are most commonly used settings. [View full list of commands](https://github.com/codecov/codecov-bash/blob/master/codecov#L56) to see the full list of commands.
3657
3758
```yaml

0 commit comments

Comments
 (0)