From 7ea61dd08a987792202f7f88e3b23c1efae1561c Mon Sep 17 00:00:00 2001 From: Igor Zubkov Date: Thu, 2 Jan 2025 09:48:44 +0100 Subject: [PATCH] Updates (#1791) * Add auth note * Add actionlint for GitHub Actions --- .github/workflows/actionlint.yml | 44 ++++++++++++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 47 insertions(+) create mode 100644 .github/workflows/actionlint.yml diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml new file mode 100644 index 00000000..7de615b4 --- /dev/null +++ b/.github/workflows/actionlint.yml @@ -0,0 +1,44 @@ +name: Action Lint + +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: "0 21 * * 6" + +permissions: + contents: read + +jobs: + actionlint: + runs-on: ubuntu-24.04 + + steps: + - name: Harden Runner + uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 + with: + egress-policy: audit + + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - uses: raven-actions/actionlint@01fce4f43a270a612932cb1c64d40505a029f821 # v2.0.0 + id: actionlint + with: + pyflakes: false + + - name: actionlint Summary + if: ${{ steps.actionlint.outputs.exit-code != 0 }} + run: | + echo "Used actionlint version ${{ steps.actionlint.outputs.version-semver }}" + echo "Used actionlint release ${{ steps.actionlint.outputs.version-tag }}" + echo "actionlint ended with ${{ steps.actionlint.outputs.exit-code }} exit code" + echo "actionlint ended because '${{ steps.actionlint.outputs.exit-message }}'" + echo "actionlint found ${{ steps.actionlint.outputs.total-errors }} errors" + echo "actionlint checked ${{ steps.actionlint.outputs.total-files }} files" + echo "actionlint cache used: ${{ steps.actionlint.outputs.cache-hit }}" + # shellcheck disable=SC2242 + exit ${{ steps.actionlint.outputs.exit-code }} diff --git a/README.md b/README.md index d6475966..adca3f9e 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,9 @@ Service container for running sidekiq web UI from [sidekiq](https://github.com/s ## Example `docker-compose.yml` +NOTE: Don't forget to close sidekiq web ui with web auth. E.g. [for devise](https://github.com/sidekiq/sidekiq/wiki/Devise). +Or with http auth in web server/proxy before. + ```yaml services: sidekiq-web-ui: