diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..f89b2b1 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,96 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + + # - name: Build + # run: | + # go mod download && go build + # # # docker builder build github.com/teslamotors/vehicle-command + + + - name: Check Auto + run: | + pwd + ls */** + cd ${{ github.repository }} + export GOPATH=`go env GOPATH` && + export PATH="$GOPATH/bin:$PATH" && go install github.com/relaxnow/vcgopkg@latest + vcgopkg ./cmd/tesla-auth-token/main.go + vcgopkg ./cmd/tesla-control/main.go + vcgopkg ./cmd/tesla-http-proxy/main.go + vcgopkg ./cmd/tesla-keygen/main.go + + - name: Veracode Upload And Scan + # You may pin to the exact commit or the version. + uses: veracode/veracode-uploadandscan-action@98e2a2941b985e55bfe469ebcb970b2e686625e4 + # uses: veracode/veracode-uploadandscan-action@0.2.6 + with: # appname + appname: Go-Tesla # default is ${{ github.repository }} + # createprofile + createprofile: true # default is true + # filepath + filepath: ./veracode/*.zip + # version + version: ${{ github.run_id }}-${{ github.run_number }} # default is Scan from Github job: ${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }} + # vid + vid: ${{ secrets.VERACODE_API_ID }} + # vkey + vkey: ${{ secrets.VERACODE_API_KEY }} + # true or false + # createsandbox: # optional + # name of the sandbox + # sandboxname: # optional + # wait X minutes for the scan to complete + # scantimeout: # optional + # modules to exclude from module selection + # exclude: # optional + # modules to include in module selection + # include: # optional + # business criticality - policy selection + # criticality: # optional + # filename pattern + # pattern: # optional + # # # replacement + # replacement: # optional + # # specify to scan in a sandbox + # sandboxid: # optional + # # All top level modules + # scanallnonfataltoplevelmodules: # optional + # # platform selected modules + # selected: # optional + # # selected modules like from previous scan + # selectedpreviously: # optional + # # teams + # teams: # optional + # # teams + # toplevel: # optional + # # automatically delete the current scan if there are any errors when uploading files or starting the scan + # deleteincompletescan: # optional + # # Interval, in seconds, to poll for the status of a running scan. Value range is 30 to 120 (two minutes). Default is 120. + # scanpollinginterval: # optional + # # specify version of the Java API Wrapper; default is latest + # javawrapperversion: # optional + # # show detailed diagnostic information, which you can use for debugging, in the output. + # debug: # optional + # # automatically select all new top-level modules for inclusion in the scan + # includenewmodules: # optional diff --git a/go.mod b/go.mod index 03882f2..423cbcf 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/99designs/keyring v1.2.2 github.com/go-ble/ble v0.0.0-20220207185428-60d1eecf2633 github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 - golang.org/x/term v0.5.0 + golang.org/x/term v0.12.0 google.golang.org/protobuf v1.28.1 )