Skip to content

Commit

Permalink
fix: run snyk ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kioqq committed Dec 18, 2023
1 parent 8cc4482 commit b91c847
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/golang@master
continue-on-error: true # To make sure that SARIF upload gets called
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --sarif-file-output=snyk.sarif
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
- uses: snyk/actions/setup@master
- uses: actions/setup-go@v1
with:
sarif_file: snyk.sarif
go-version: '1.20'
- name: Snyk monitor
run: snyk code test
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
10 changes: 5 additions & 5 deletions docker/build.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ COPY --from=build-env /go/bin/cosmovisor /usr/bin/cosmovisor
COPY --from=build-env /go/src/github.com/haqq-network/haqq/build/haqqd /usr/bin/haqqd

RUN apk add --no-cache \
ca-certificates=20230506-r0 jq=~1.6 \
curl=~8.4 bash=~5.2 \
vim=~9.0 lz4=~1.9 \
tini=~0.19 \
gcompat=~1.1
ca-certificates jq \
curl bash \
vim lz4 \
tini \
gcompat

RUN addgroup -g 1000 haqq \
&& adduser -S -h /home/haqq -D haqq -u 1000 -G haqq
Expand Down
2 changes: 1 addition & 1 deletion proto/haqq/coinomics/v1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ message GenesisState {
Params params = 1 [ (gogoproto.nullable) = false ];

// prev block block ts
string prev_block_ts = 2 [
string prev_block_ts = 2 [

Check failure on line 15 in proto/haqq/coinomics/v1/genesis.proto

View workflow job for this annotation

GitHub Actions / Proto break-check

Field "2" with name "prev_block_ts" on message "GenesisState" changed option "json_name" from "inflation" to "prevBlockTs".

Check failure on line 15 in proto/haqq/coinomics/v1/genesis.proto

View workflow job for this annotation

GitHub Actions / Proto break-check

Field "2" on message "GenesisState" changed name from "inflation" to "prev_block_ts".
(gogoproto.customtype) = "cosmossdk.io/math.Int",
(gogoproto.nullable) = false
];
Expand Down

0 comments on commit b91c847

Please sign in to comment.