Update docker-compose-reg.yaml #319
Workflow file for this run
This file contains hidden or 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: reviewdog | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| permissions: | |
| contents: read | |
| jobs: | |
| reviewdog: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@72f2cec99f417b1a1c5e2e88945068983b7965f9 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Install go | |
| uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a | |
| with: | |
| go-version: '1.20' | |
| - name: Install golangci-lint | |
| run: | | |
| mkdir -p ./bin | |
| sudo curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./bin v1.51.2 | |
| - name: Install shellcheck | |
| run: | | |
| sudo apt install shellcheck | |
| - name: Install bandit and pycodestyle | |
| run: | | |
| pip install --require-hashes --no-deps --no-cache-dir -r .github/workflows/requirements.txt | |
| - name: Install hadolint | |
| env: | |
| HADOLINT_VERSION: v1.16.3 | |
| run: | | |
| wget -q https://github.com/hadolint/hadolint/releases/download/$HADOLINT_VERSION/hadolint-Linux-x86_64 -O ./bin/hadolint \ | |
| && chmod +x ./bin/hadolint | |
| - name: Install reviewdog | |
| run: | | |
| curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b ./bin | |
| - name: Run Reviewdog | |
| env: | |
| REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| REVIEWDOG_FAIL_ON_ERROR: 'true' | |
| run: | | |
| mkdir -p "$PWD"/scan_results | |
| ./bin/reviewdog -conf .github/.reviewdogConfig.yml -reporter=github-pr-check | |
| - uses: actions/upload-artifact@a1d85e775a8c6560db9d804d71d6a173c9532240 | |
| with: | |
| name: scan_results | |
| path: ${{ github.workspace }}/scan_results/ | |