Skip to content

chore(deps): update github-actions #146

chore(deps): update github-actions

chore(deps): update github-actions #146

Workflow file for this run

---
name: lint
on:
pull_request:
branches:
- main
workflow_dispatch:
workflow_call:
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}-${{ github.action }}
# cancel-in-progress: false
permissions:
pull-requests: read
contents: read
checks: write
jobs:
lint:
name: lint
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
checks: write # For trunk to post annotations
contents: read # For repo checkout
steps:
- name: checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: set-aqua-policy-if-file-exists
run: |
if [ -f aqua-policy.yaml ]; then
echo "AQUA_POLICY_CONFIG=${GITHUB_WORKSPACE}/aqua-policy.yaml:${AQUA_POLICY_CONFIG}" >> $GITHUB_ENV
else
echo "👉 No aqua-policy.yaml file found, skipping setting AQUA_POLICY_CONFIG"
fi
- uses: aquaproj/aqua-installer@fd2089d1f56724d6456f24d58605e6964deae124 # v2.3.2
continue-on-error: true
with:
aqua_version: v2.10.1
enable_aqua_install: true
aqua_opts: '--tags lint' # if using aqua.yaml config any special items in your repo like Golangci-lint using tags so it only installs what's needed
env:
AQUA_LOG_LEVEL: debug
AQUA_OPTS: ''
- name: trunk-check
uses: trunk-io/trunk-action@da67635060feab46c164bc130690e61864a5d13b # v1.1.13
with:
arguments: --github-annotate-new-only=true