Skip to content

chore: pin GitHub Actions to commit SHAs #379

chore: pin GitHub Actions to commit SHAs

chore: pin GitHub Actions to commit SHAs #379

Workflow file for this run

# The Licensed Work is (c) 2022 Sygma
# SPDX-License-Identifier: LGPL-3.0-only
on: [pull_request]
name: Mocks check
env:
GO111MODULE: on
GOPRIVATE: github.com/sprintertech
TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
jobs:
mocks-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: setup git access to private repos
run: git config --global url."https://${TOKEN}:x-oauth-basic@github.com/sprintertech/".insteadOf "https://github.com/sprintertech/"
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: "^1.23"
- run: go install go.uber.org/mock/mockgen@v0.6
- run: make genmocks
- name: mocks updated check
run: git diff --exit-code