File tree Expand file tree Collapse file tree 4 files changed +46
-2
lines changed
Expand file tree Collapse file tree 4 files changed +46
-2
lines changed Original file line number Diff line number Diff line change 1+ # Dependency Review Action
2+ #
3+ # This Action will scan dependency manifest files that change as part of a Pull Request,
4+ # surfacing known-vulnerable versions of the packages declared or updated in the PR.
5+ # Once installed, if the workflow run is marked as required,
6+ # PRs introducing known-vulnerable packages will be blocked from merging.
7+ #
8+ # Source repository: https://github.com/actions/dependency-review-action
9+ name : ' Dependency Review'
10+ on : [pull_request]
11+
12+ permissions :
13+ contents : read
14+
15+ jobs :
16+ dependency-review :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Harden Runner
20+ uses : step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 # v2.4.1
21+ with :
22+ egress-policy : audit
23+
24+ - name : ' Checkout Repository'
25+ uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
26+ - name : ' Dependency Review'
27+ uses : actions/dependency-review-action@0efb1d1d84fc9633afcdaad14c485cbbc90ef46c # v2.5.1
Original file line number Diff line number Diff line change 1313 contents : write
1414 runs-on : ubuntu-20.04
1515 steps :
16- - uses : step-security/harden-runner@v2
16+ - uses : step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 # v2.4.1
1717 with :
1818 allowed-endpoints :
1919 api.github.com:443
Original file line number Diff line number Diff line change 11name : Test
22on :
3+ pull_request :
4+ branches :
5+ - main
36 push :
47
58permissions : read-all
1821 go-version : 1.19
1922 - name : Run coverage
2023 run : sudo CI=true go test -race -coverprofile=coverage.txt -covermode=atomic
21- - uses : codecov/codecov-action@40a12dcee2df644d47232dde008099a3e9e4f865
24+ - uses : codecov/codecov-action@40a12dcee2df644d47232dde008099a3e9e4f865
Original file line number Diff line number Diff line change 1+ repos :
2+ - repo : https://github.com/gitleaks/gitleaks
3+ rev : v8.16.3
4+ hooks :
5+ - id : gitleaks
6+ - repo : https://github.com/golangci/golangci-lint
7+ rev : v1.52.2
8+ hooks :
9+ - id : golangci-lint
10+ - repo : https://github.com/pre-commit/pre-commit-hooks
11+ rev : v4.4.0
12+ hooks :
13+ - id : end-of-file-fixer
14+ - id : trailing-whitespace
You can’t perform that action at this time.
0 commit comments