chore(deps): update all non-major dependencies #5591
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@6dacdfc16caa5ebd987908a44ab5b425193385f6 | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- id: skip_check | |
uses: fkirc/skip-duplicate-actions@fc7bbd5283bce15e0594f80a57e0d4ca070b4b4b | |
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-20.04 | |
needs: skip-check | |
if: ${{ needs.skip-check.outputs.should_skip != 'true' }} | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@08b314a5730da00e95d0394603ed798406886596 | |
with: | |
go-version: 1.19.1 | |
- uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5 | |
# see: https://golangci-lint.run/usage/configuration/#config-file | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@4f5a3af221b0f8313e5353317fdf71640be2d2fd | |
with: | |
version: v1.51.2 | |
skip-go-installation: true | |
- name: golic | |
run: | | |
go install github.com/AbsaOSS/[email protected] | |
golic inject --dry -x -t apache2 | |
- name: gokart | |
run: | | |
go install github.com/praetorian-inc/[email protected] | |
gokart scan --globalsTainted | |
- name: go test | |
run: go test ./... |