mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
13a194466b
* chore: Set permissions for GitHub actions Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much. - Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs [Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/) Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com> * Update docs-production-deploy.yml * added `packages: write` permissions this is apparently needed by GH so this repository can push new images. Co-authored-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> Co-authored-by: Casper <casperklein@users.noreply.github.com>
39 lines
609 B
YAML
39 lines
609 B
YAML
name: "Lint"
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ "*" ]
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Hadolint
|
|
run: |
|
|
make hadolint
|
|
env:
|
|
HADOLINT_VERSION: 2.4.1
|
|
|
|
- name: ShellCheck
|
|
run: |
|
|
make shellcheck
|
|
env:
|
|
SHELLCHECK_VERSION: 0.8.0
|
|
|
|
- name: ECLint
|
|
run: |
|
|
make eclint
|
|
env:
|
|
ECLINT_VERSION: 2.3.5
|