github sdk: add withClient options so we can override the default client, useful for adding unit tests with httptest.NewServer #1259
Workflow file for this run
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
# Copyright 2022 Chainguard, Inc. | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Action Lint | |
on: | |
pull_request: | |
branches: [ 'main', 'release-*' ] | |
jobs: | |
action-lint: | |
name: Action lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- name: Check out code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Find yamls | |
id: get_yamls | |
run: | | |
yamls="$(find .github/workflows -name "*.y*ml" | grep -v dependabot. | xargs echo)" | |
echo "files=${yamls}" >> "$GITHUB_OUTPUT" | |
- name: Action lint | |
uses: reviewdog/action-actionlint@08ef4afa963243489a457cca426f705ce4e0d1a5 # v1.60.0 | |
with: | |
actionlint_flags: ${{ steps.get_yamls.outputs.files }} |