Skip to content

harden and refactor GH action for unit tests #6

harden and refactor GH action for unit tests

harden and refactor GH action for unit tests #6

Workflow file for this run

name: fmtcheck
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
fmtcheck:
runs-on: ubuntu-latest
steps:
- name: harden runner
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 # v2.4.1
with:
egress-policy: block
disable-sudo: true
allowed-endpoints: >
github.com:443
api.github.com:443
raw.githubusercontent.com:443
objects.githubusercontent.com:443
- name: checkout code
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: setup go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: 1.19
- name: fmtcheck

Check failure on line 32 in .github/workflows/fmtcheck.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/fmtcheck.yml

Invalid workflow file

You have an error in your yaml syntax on line 32
run: 'bash -c "diff -u <(echo -n) <(gofmt -d .)"'