Skip to content

build(deps): Bump step-security/harden-runner from 2.10.3 to 2.10.4 #766

build(deps): Bump step-security/harden-runner from 2.10.3 to 2.10.4

build(deps): Bump step-security/harden-runner from 2.10.3 to 2.10.4 #766

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
paths:
- .github/workflows/build.yml
- cmd/**/*.go
- makefile
- go.mod
- go.sum
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
strategy:
matrix:
goos: [windows, linux, darwin]
arch: [amd64, arm64]
name: "${{ matrix.goos }} | ${{ matrix.arch }}"
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
with:
egress-policy: audit
- name: Check out repository code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version-file: go.mod
check-latest: true
- name: Build
run: |
make OS=${{ matrix.goos }} ARCH=${{ matrix.arch }} build
- name: Upload binary
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: cpackget-${{ matrix.goos }}-${{ matrix.arch }}
path: build/cpackget*
retention-days: 7