Skip to content

Compute the SHA256 of the resulting token and record in event. #267

Compute the SHA256 of the resulting token and record in event.

Compute the SHA256 of the resulting token and record in event. #267

Workflow file for this run

# Copyright 2024 Chainguard, Inc.
# SPDX-License-Identifier: Apache-2.0
name: go-build-test
on:
pull_request:
branches:
- 'main'
push:
branches:
- 'main'
jobs:
go-build-test:
runs-on: ubuntu-latest
steps:
- name: Check out code onto GOPATH
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: './go.mod'
check-latest: true
- name: build
run: |
go build -o octo-sts ./cmd/app
- name: test
run: |
# Exclude running unit tests against third_party repos.
go test -v -race ./...