Skip to content

chore(deps): update peter-evans/create-pull-request digest to 9e49b18 #7487

chore(deps): update peter-evans/create-pull-request digest to 9e49b18

chore(deps): update peter-evans/create-pull-request digest to 9e49b18 #7487

Workflow file for this run

name: Golang lint, golic, gokart and test
on:
push:
paths-ignore:
- '**.md'
- '**.svg'
- '**.drawio'
- '.spelling'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
- '**.svg'
- '**.drawio'
- '.spelling'
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
skip-check:
permissions:
actions: write # for fkirc/skip-duplicate-actions to skip or stop workflow runs
contents: read # for fkirc/skip-duplicate-actions to read and compare commits
runs-on: ubuntu-latest
name: Skip the job?
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@ea8b747819ff6d82907eb4018229f1a75c174697
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- id: skip_check
uses: fkirc/skip-duplicate-actions@2d93cbdfaef6dfa549606668cfb9228c96fa0816
with:
skip_after_successful_duplicate: 'true'
do_not_skip: '["workflow_dispatch", "schedule"]'
go-inspect:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
name: Inspect packages
runs-on: ubuntu-22.04
needs: skip-check
if: ${{ needs.skip-check.outputs.should_skip != 'true' }}
steps:
- name: Set up Go
uses: actions/setup-go@bfd2fb341f32be7281829126376a12a780ca79fc
with:
go-version: 1.19.1
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
# see: https://golangci-lint.run/usage/configuration/#config-file
- name: golangci-lint
uses: golangci/golangci-lint-action@50372b65180371af8e5c72351e6cdd29a34ea08a
with:
version: v1.51.2
skip-go-installation: true
- name: golic
run: |
go install github.com/AbsaOSS/golic@v0.7.2
golic inject --dry -x -t apache2
- name: gokart
run: |
go install github.com/praetorian-inc/gokart@v0.5.1
gokart scan --globalsTainted
- name: go test
run: go test ./...