Skip to content

Bump actions/setup-go from 3.5.0 to 4.1.0 #42

Bump actions/setup-go from 3.5.0 to 4.1.0

Bump actions/setup-go from 3.5.0 to 4.1.0 #42

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
- int
permissions: # added using https://github.com/step-security/secure-repo
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
with:
egress-policy: audit
- name: Code Checkout
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: 1.19
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: Build Container Image (int)
uses: elgohr/Publish-Docker-Github-Action@43dc228e327224b2eda11c8883232afd5b34943b # v5
env:
API_ENDPOINT: "https://int.api.stepsecurity.io"
if: startsWith(github.ref, 'refs/heads/int')
with:
no_push: true
buildargs: API_ENDPOINT
- name: Build Container Image (main)
uses: elgohr/Publish-Docker-Github-Action@43dc228e327224b2eda11c8883232afd5b34943b # v5
env:
API_ENDPOINT: "https://agent.api.stepsecurity.io"
if: startsWith(github.ref, 'refs/heads/main')
with:
no_push: true
buildargs: API_ENDPOINT