Skip to content

Instantly share code, notes, and snippets.

@deogracia
Created October 19, 2020 21:16
Show Gist options
  • Save deogracia/38786df26f946a2a4793204070c0693b to your computer and use it in GitHub Desktop.
Save deogracia/38786df26f946a2a4793204070c0693b to your computer and use it in GitHub Desktop.
windows: install go on github's windows host
name: Checks on_push
on:
push:
branches:
- "*"
tags:
- "!v*.*.*"
jobs:
windows_test:
name: windows-latest - tests
runs-on: windows-latest
steps:
- name: run gosec
run: |
export GOPATH="/$(go env GOPATH | sed 's/\\/\//g'| sed 's/://' )"
go get github.com/securego/gosec/cmd/gosec
PATH="/$(go env GOPATH | sed 's/\\/\//g'| sed 's/://' )/bin":$PATH
env |sort
gosec version
go version
go env
shell: bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment