Skip to content

Commit

Permalink
s/safety/snyk/
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pennebaker committed Aug 14, 2024
1 parent 8d86103 commit 3eec6ec
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 15 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,4 @@ jobs:
- run: "wget https://go.dev/dl/go1.23.0.linux-amd64.tar.gz"
- run: "sudo tar -C /usr/local -xzf go1.23.0.linux-amd64.tar.gz"
- run: "./install"
#
# Debian-based Ubuntu GitHub Actions base OS is
# expected to present unresolvable CVE's.
#
# Disabling (GitHub Actions Hosted) safety runner step for now.
# Care when merging pull requests.
# In any case, all CI/CD jobs can be peformed locally.
#
# - run: "./build audit"
- run: "./build audit"
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
golang 1.23.0
nodejs 20.10.0
python 3.12.1
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ It is provided with the base macOS operating system. Equivalent aliases for `ope
* [ShellCheck](https://www.shellcheck.net/) 0.8.0+
* [Go](https://go.dev/) 1.23.0+
* [kirill](https://github.com/mcandre/kirill) 0.0.1
* [Node.js](https://nodejs.org/en/) 20.10.0+
* [Python](https://www.python.org/) 3.12.1+
* Provision additional dev tools with `./install`

Expand Down
10 changes: 5 additions & 5 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -euf
DEFAULT_TASK='lint'

audit() {
safety
snyk
}

lint() {
Expand All @@ -32,10 +32,6 @@ kirill() {
xargs -0 -n 1 -t jq -r input_filename
}

safety() {
command safety check
}

shellcheck() {
stank -print0 -exInterp zsh . |
xargs -0 -n 1 shellcheck
Expand All @@ -51,6 +47,10 @@ slick() {
xargs -0 -n 1 slick
}

snyk() {
command snyk test
}

yamllint() {
command yamllint -s .yamllint .
}
Expand Down
2 changes: 2 additions & 0 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ go install github.com/mcandre/stank/[email protected]
go install mvdan.cc/sh/v3/cmd/[email protected]
go mod tidy

npm install -g snyk

pip3 install --upgrade pip setuptools
pip3 install -r requirements-dev.txt
1 change: 0 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
bashate>=2.1.1,<3.0
safety
yamllint>=1.11.1,<2.0

0 comments on commit 3eec6ec

Please sign in to comment.