Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

golang.org/x/term v0.5.0 -> v0.12.0 #7

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
96 changes: 96 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you also need to update go.sum. Can you run go mod tidy?

google.golang.org/protobuf v1.28.1
)

Expand Down