Skip to content

Commit

Permalink
Search and replace informalsystems with orijtech to work on Docker bu…
Browse files Browse the repository at this point in the history
…ilding end-to-end
  • Loading branch information
odeke-em committed Aug 5, 2022
1 parent 2c09f88 commit d4688c0
Show file tree
Hide file tree
Showing 57 changed files with 86 additions and 86 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project_name: gosec

release:
github:
owner: informalsystems
owner: orijtech
name: gosec

builds:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GIT_TAG?= $(shell git describe --always --tags)
BIN = gosec
FMT_CMD = $(gofmt -s -l -w $(find . -type f -name '*.go' -not -path './vendor/*') | tee /dev/stderr)
IMAGE_REPO = informalsystems
IMAGE_REPO = orijtech
BUILDFLAGS := '-w -s'
CGO_ENABLED = 0
GO := GO111MODULE=on go
Expand Down
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ You may obtain a copy of the License [here](http://www.apache.org/licenses/LICEN
## Project status

[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/3218/badge)](https://bestpractices.coreinfrastructure.org/projects/3218)
[![Build Status](https://github.com/informalsystems/gosec/workflows/CI/badge.svg)](https://github.com/informalsystems/gosec/actions?query=workflows%3ACI)
[![Coverage Status](https://codecov.io/gh/informalsystems/gosec/branch/master/graph/badge.svg)](https://codecov.io/gh/informalsystems/gosec)
[![GoReport](https://goreportcard.com/badge/github.com/informalsystems/gosec)](https://goreportcard.com/badge/github.com/informalsystems/gosec)
[![GoDoc](https://godoc.org/github.com/informalsystems/gosec?status.svg)](https://godoc.org/github.com/informalsystems/gosec)
[![Build Status](https://github.com/orijtech/gosec/workflows/CI/badge.svg)](https://github.com/orijtech/gosec/actions?query=workflows%3ACI)
[![Coverage Status](https://codecov.io/gh/orijtech/gosec/branch/master/graph/badge.svg)](https://codecov.io/gh/orijtech/gosec)
[![GoReport](https://goreportcard.com/badge/github.com/orijtech/gosec)](https://goreportcard.com/badge/github.com/orijtech/gosec)
[![GoDoc](https://godoc.org/github.com/orijtech/gosec?status.svg)](https://godoc.org/github.com/orijtech/gosec)
[![Docs](https://readthedocs.org/projects/docs/badge/?version=latest)](https://securego.io/)
[![Downloads](https://img.shields.io/github/downloads/informalsystems/gosec/total.svg)](https://github.com/informalsystems/gosec/releases)
[![Docker Pulls](https://img.shields.io/docker/pulls/informalsystems/gosec.svg)](https://hub.docker.com/r/informalsystems/gosec/tags)
[![Downloads](https://img.shields.io/github/downloads/orijtech/gosec/total.svg)](https://github.com/orijtech/gosec/releases)
[![Docker Pulls](https://img.shields.io/docker/pulls/orijtech/gosec.svg)](https://hub.docker.com/r/orijtech/gosec/tags)
[![Slack](http://securego.herokuapp.com/badge.svg)](http://securego.herokuapp.com)

## Install
Expand All @@ -33,17 +33,17 @@ You may obtain a copy of the License [here](http://www.apache.org/licenses/LICEN

```bash
# binary will be $(go env GOPATH)/bin/gosec
curl -sfL https://raw.githubusercontent.com/informalsystems/gosec/master/install.sh | sh -s -- -b $(go env GOPATH)/bin vX.Y.Z
curl -sfL https://raw.githubusercontent.com/orijtech/gosec/master/install.sh | sh -s -- -b $(go env GOPATH)/bin vX.Y.Z

# or install it into ./bin/
curl -sfL https://raw.githubusercontent.com/informalsystems/gosec/master/install.sh | sh -s vX.Y.Z
curl -sfL https://raw.githubusercontent.com/orijtech/gosec/master/install.sh | sh -s vX.Y.Z

# In alpine linux (as it does not come with curl by default)
wget -O - -q https://raw.githubusercontent.com/informalsystems/gosec/master/install.sh | sh -s vX.Y.Z
wget -O - -q https://raw.githubusercontent.com/orijtech/gosec/master/install.sh | sh -s vX.Y.Z

# If you want to use the checksums provided on the "Releases" page
# then you will have to download a tar.gz file for your operating system instead of a binary file
wget https://github.com/informalsystems/gosec/releases/download/vX.Y.Z/gosec_vX.Y.Z_OS.tar.gz
wget https://github.com/orijtech/gosec/releases/download/vX.Y.Z/gosec_vX.Y.Z_OS.tar.gz

# The file will be in the current folder where you run the command
# and you can check the checksum like this
Expand Down Expand Up @@ -73,15 +73,15 @@ jobs:
- name: Checkout Source
uses: actions/checkout@v2
- name: Run Gosec Security Scanner
uses: informalsystems/gosec@master
uses: orijtech/gosec@master
with:
args: ./...
```
### Local Installation
```bash
go get github.com/informalsystems/gosec/v2/cmd/gosec
go get github.com/orijtech/gosec/v2/cmd/gosec
```

## Usage
Expand Down Expand Up @@ -143,7 +143,7 @@ $ gosec -exclude=G303 ./...
```
### CWE Mapping

Every issue detected by `gosec` is mapped to a [CWE (Common Weakness Enumeration)](http://cwe.mitre.org/data/index.html) which describes in more generic terms the vulnerability. The exact mapping can be found [here](https://github.com/informalsystems/gosec/blob/master/issue.go#L49).
Every issue detected by `gosec` is mapped to a [CWE (Common Weakness Enumeration)](http://cwe.mitre.org/data/index.html) which describes in more generic terms the vulnerability. The exact mapping can be found [here](https://github.com/orijtech/gosec/blob/master/issue.go#L49).

### Configuration

Expand Down Expand Up @@ -308,7 +308,7 @@ You can run the `gosec` tool in a container against your local Go project. You o
into a volume as follows:

```bash
docker run --rm -it -w /<PROJECT>/ -v <YOUR PROJECT PATH>/<PROJECT>:/<PROJECT> informalsystems/gosec /<PROJECT>/...
docker run --rm -it -w /<PROJECT>/ -v <YOUR PROJECT PATH>/<PROJECT>:/<PROJECT> orijtech/gosec /<PROJECT>/...
```
**Note:** the current working directory needs to be set with `-w` option in order to get successfully resolved the dependencies from go module file

Expand All @@ -319,7 +319,7 @@ The configuration of TLS rule can be generated from [Mozilla's TLS ciphers recom
First you need to install the generator tool:

```bash
go get github.com/informalsystems/gosec/v2/cmd/tlsconfig/...
go get github.com/orijtech/gosec/v2/cmd/tlsconfig/...
```

You can invoke now the `go generate` in the root of the project:
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:

runs:
using: 'docker'
image: 'docker://informalsystems/gosec'
image: 'docker://orijtech/gosec'
args:
- ${{ inputs.args }}

Expand Down
6 changes: 3 additions & 3 deletions analyzer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"os"
"strings"

"github.com/informalsystems/gosec/v2"
"github.com/informalsystems/gosec/v2/rules"
"github.com/orijtech/gosec/v2"
"github.com/orijtech/gosec/v2/rules"
"golang.org/x/tools/go/packages"

"github.com/informalsystems/gosec/v2/testutils"
"github.com/orijtech/gosec/v2/testutils"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
Expand Down
4 changes: 2 additions & 2 deletions call_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package gosec_test
import (
"go/ast"

"github.com/informalsystems/gosec/v2"
"github.com/informalsystems/gosec/v2/testutils"
"github.com/orijtech/gosec/v2"
"github.com/orijtech/gosec/v2/testutils"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
Expand Down
6 changes: 3 additions & 3 deletions cmd/gosec/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"sort"
"strings"

"github.com/informalsystems/gosec/v2"
"github.com/informalsystems/gosec/v2/output"
"github.com/informalsystems/gosec/v2/rules"
"github.com/orijtech/gosec/v2"
"github.com/orijtech/gosec/v2/output"
"github.com/orijtech/gosec/v2/rules"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/gosec/sort_issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"strings"

"github.com/informalsystems/gosec/v2"
"github.com/orijtech/gosec/v2"
)

// handle ranges
Expand Down
2 changes: 1 addition & 1 deletion cmd/gosec/sort_issues_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"testing"

"github.com/informalsystems/gosec/v2"
"github.com/orijtech/gosec/v2"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/tlsconfig/header_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ package {{.}}
import (
"go/ast"
"github.com/informalsystems/gosec/v2"
"github.com/orijtech/gosec/v2"
)
`))
2 changes: 1 addition & 1 deletion config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"strings"

"github.com/informalsystems/gosec/v2"
"github.com/orijtech/gosec/v2"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
go 1.17

module github.com/informalsystems/gosec/v2
module github.com/orijtech/gosec/v2

require (
github.com/gookit/color v1.3.1
Expand Down
4 changes: 2 additions & 2 deletions helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"path/filepath"
"regexp"

"github.com/informalsystems/gosec/v2"
"github.com/informalsystems/gosec/v2/testutils"
"github.com/orijtech/gosec/v2"
"github.com/orijtech/gosec/v2/testutils"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
Expand Down
4 changes: 2 additions & 2 deletions import_tracker_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package gosec_test

import (
"github.com/informalsystems/gosec/v2"
"github.com/informalsystems/gosec/v2/testutils"
"github.com/orijtech/gosec/v2"
"github.com/orijtech/gosec/v2/testutils"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ set -e
usage() {
this=$1
cat <<EOF
$this: download go binaries for informalsystems/gosec
$this: download go binaries for orijtech/gosec
Usage: $this [-b] bindir [-d] [tag]
-b sets bindir or installation directory, Defaults to ./bin
-d turns on debug logging
[tag] is a tag from
https://github.com/informalsystems/gosec/releases
https://github.com/orijtech/gosec/releases
If tag is missing, then the latest will be used.
Generated by godownloader
Expand Down Expand Up @@ -330,7 +330,7 @@ End of functions from https://github.com/client9/shlib
EOF

PROJECT_NAME="gosec"
OWNER=informalsystems
OWNER=orijtech
REPO="gosec"
BINARY=gosec
FORMAT=tar.gz
Expand Down
6 changes: 3 additions & 3 deletions issue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package gosec_test
import (
"go/ast"

"github.com/informalsystems/gosec/v2"
"github.com/informalsystems/gosec/v2/rules"
"github.com/informalsystems/gosec/v2/testutils"
"github.com/orijtech/gosec/v2"
"github.com/orijtech/gosec/v2/rules"
"github.com/orijtech/gosec/v2/testutils"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
Expand Down
2 changes: 1 addition & 1 deletion output/formatter.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
plainTemplate "text/template"

color "github.com/gookit/color"
"github.com/informalsystems/gosec/v2"
"github.com/orijtech/gosec/v2"
"gopkg.in/yaml.v2"
)

Expand Down
2 changes: 1 addition & 1 deletion output/formatter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"strings"

"github.com/informalsystems/gosec/v2"
"github.com/orijtech/gosec/v2"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"gopkg.in/yaml.v2"
Expand Down
2 changes: 1 addition & 1 deletion output/junit_xml_format.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
htmlLib "html"
"strconv"

"github.com/informalsystems/gosec/v2"
"github.com/orijtech/gosec/v2"
)

type junitXMLReport struct {
Expand Down
2 changes: 1 addition & 1 deletion output/sarif_format.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strconv"
"strings"

"github.com/informalsystems/gosec/v2"
"github.com/orijtech/gosec/v2"
)

type sarifLevel string
Expand Down
2 changes: 1 addition & 1 deletion output/sonarqube_format.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package output

import "github.com/informalsystems/gosec/v2"
import "github.com/orijtech/gosec/v2"

type textRange struct {
StartLine int `json:"startLine"`
Expand Down
4 changes: 2 additions & 2 deletions resolve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package gosec_test
import (
"go/ast"

"github.com/informalsystems/gosec/v2"
"github.com/informalsystems/gosec/v2/testutils"
"github.com/orijtech/gosec/v2"
"github.com/orijtech/gosec/v2/testutils"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
Expand Down
2 changes: 1 addition & 1 deletion rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"go/ast"

"github.com/informalsystems/gosec/v2"
"github.com/orijtech/gosec/v2"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
Expand Down
2 changes: 1 addition & 1 deletion rules/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"go/ast"
"go/types"

"github.com/informalsystems/gosec/v2"
"github.com/orijtech/gosec/v2"
)

type archive struct {
Expand Down
2 changes: 1 addition & 1 deletion rules/bad_defer.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"go/ast"
"strings"

"github.com/informalsystems/gosec/v2"
"github.com/orijtech/gosec/v2"
)

type deferType struct {
Expand Down
2 changes: 1 addition & 1 deletion rules/bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"go/ast"
"regexp"

"github.com/informalsystems/gosec/v2"
"github.com/orijtech/gosec/v2"
)

// Looks for net.Listen("0.0.0.0") or net.Listen(":8080")
Expand Down
2 changes: 1 addition & 1 deletion rules/blocklist.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"go/ast"
"strings"

"github.com/informalsystems/gosec/v2"
"github.com/orijtech/gosec/v2"
)

type blocklistedImport struct {
Expand Down
2 changes: 1 addition & 1 deletion rules/decompression-bomb.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"fmt"
"go/ast"

"github.com/informalsystems/gosec/v2"
"github.com/orijtech/gosec/v2"
)

type decompressionBombCheck struct {
Expand Down
2 changes: 1 addition & 1 deletion rules/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"go/types"
"sort"

"github.com/informalsystems/gosec/v2"
"github.com/orijtech/gosec/v2"
)

type noErrorCheck struct {
Expand Down
2 changes: 1 addition & 1 deletion rules/fileperms.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"go/ast"
"strconv"

"github.com/informalsystems/gosec/v2"
"github.com/orijtech/gosec/v2"
)

type filePermissions struct {
Expand Down
2 changes: 1 addition & 1 deletion rules/hardcoded_credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"regexp"
"strconv"

"github.com/informalsystems/gosec/v2"
"github.com/orijtech/gosec/v2"
zxcvbn "github.com/nbutton23/zxcvbn-go"
)

Expand Down
Loading

0 comments on commit d4688c0

Please sign in to comment.