Skip to content

Commit

Permalink
use the audit action
Browse files Browse the repository at this point in the history
  • Loading branch information
jglynn committed Nov 18, 2023
1 parent 8b49a87 commit 6a1514f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/cosmwasm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@ jobs:
name: test-coverage
path: target/llvm-cov/html

- name: Scan
run: |
cargo audit
- name: Audit
uses: rustsec/audit-check@v1.4.1
with:
token: ${{ secrets.ACTION_TOKEN }}

- name: SBOM
run: |
cargo sbom --output-format cyclone_dx_json_1_4 > target/cdx-sbom.json
- name: Assemble
Expand Down
23 changes: 16 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ We then perform a `cosmwasm-check` to determine if the binary is a proper smart

### Test

Run tests and generate coverage reports in both HTML and LCOV formats
Run tests and generate coverage reports in both `HTML` and `LCOV` formats

The lcov data will eventually be shipped off to SonarQube for reporting.
The lcov data will eventually be shipped off to `SonarQube` for reporting.

```yml
- name: Test
Expand All @@ -90,7 +90,7 @@ The lcov data will eventually be shipped off to SonarQube for reporting.

### Inspect

Run static analysis scans via clippy and assemble findings in a Sonar-friendly format.
Run static analysis scan via `clippy` and assemble findings in a Sonar-friendly format.

```yml
- name: Inspect
Expand All @@ -100,19 +100,28 @@ Run static analysis scans via clippy and assemble findings in a Sonar-friendly f
mv sonar-issues.json target/sonar-issues.json
```

### Scan
### Audit

Perform an `audit` and fail/report any vulnerable crates.

```yml
- name: Audit
uses: rustsec/audit-check@v1.4.1
with:
token: ${{ secrets.ACTION_TOKEN }}
```

### SBOM

Perform an `audit` and fail on any vulnerable crates.
Generate a Software Bill of Materials `sbom` in `CycloneDX` format

```yml
- name: Scan
run: |
cargo audit
cargo sbom --output-format cyclone_dx_json_1_4 > target/cdx-sbom.json
```

### Publish
### Assemble

Comming soon.

Expand Down

0 comments on commit 6a1514f

Please sign in to comment.