Skip to content

Bump step-security/harden-runner from 2.4.0 to 2.4.1 (#4551) #143

Bump step-security/harden-runner from 2.4.0 to 2.4.1 (#4551)

Bump step-security/harden-runner from 2.4.0 to 2.4.1 (#4551) #143

name: Unit Tests on Go Tip
on:
push:
branches: [main]
# See https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
unit-tests-go-tip:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
# From https://github.com/actions/setup-go/issues/21#issuecomment-997208686
- name: Install Go tip
run: |
curl -sL https://storage.googleapis.com/go-build-snap/go/linux-amd64/$(git ls-remote https://github.com/golang/go.git HEAD | awk '{print $1;}').tar.gz -o gotip.tar.gz
ls -lah gotip.tar.gz
mkdir -p ~/sdk/gotip
tar -C ~/sdk/gotip -xzf gotip.tar.gz
~/sdk/gotip/bin/go version
echo "GOROOT=$HOME/sdk/gotip" >> $GITHUB_ENV
echo "PATH=$HOME/go/bin:$HOME/sdk/gotip/bin/:$PATH" >> $GITHUB_ENV
- name: Install tools
run: make install-ci
- name: Run unit tests
run: make test-ci
- name: Lint
run: echo skip linting on Go tip