Skip to content

Commit

Permalink
feat: lint GitHub Actions workflows
Browse files Browse the repository at this point in the history
Works around <dependabot/dependabot-core#8362>
for now.
  • Loading branch information
l0b0 committed Nov 8, 2023
1 parent 5b4dc30 commit d6f2bb7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ updates:
directory: "/"
schedule:
interval: daily
- package-ecosystem: "docker"
directory: "/.github/workflows"
schedule:
interval: daily
- package-ecosystem: npm
directory: "/"
schedule:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/actionlint.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Workaround for https://github.com/dependabot/dependabot-core/issues/8362.
# Once that is fixed, remove this file and replace the Docker build and run
# lines in `.github/workflows/main.yml` with a `uses: docker://rhysd/…` line.
FROM rhysd/actionlint:1.6.26@sha256:2362769b1d75056da70e7af1b12d9e52746f3a123b8f22a4322869e8f2cd45f2
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:
- name: format
run: npm run format -- --fix=false # ensure eslint is not configured to --fix

- name: Download actionlint
run: docker build --tag actionlint - < .github/workflows/actionlint.dockerfile

- name: Run actionlint to check workflow files
run: docker run --volume="${PWD}:/repo" --workdir=/repo actionlint -color

# Configure access to AWS / EKS
- name: Setup kubectl
Expand Down

0 comments on commit d6f2bb7

Please sign in to comment.