Files
obsidian-metadata/.github/workflows/devcontainer-checker.yml
2023-05-05 14:51:32 -04:00

64 lines
1.9 KiB
YAML

---
name: "Dev Container Checker"
on:
workflow_dispatch:
push:
paths:
- ".devcontainer/**"
- ".github/workflows/devcontainer-checker.yml"
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
paths:
- ".devcontainer/**"
- ".github/workflows/devcontainer-checker.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
dev-container-checker:
runs-on: ubuntu-latest
steps:
- name: Harden Security Runner
uses: step-security/harden-runner@v2
with:
egress-policy: block
allowed-endpoints: >
*.data.mcr.microsoft.com:443
api.snapcraft.io:443
auth.docker.io:443
deb.debian.org:443
deb.debian.org:80
dl.yarnpkg.com:443
files.pythonhosted.org:443
ghcr.io:443
git.rootprojects.org:443
github.com:443
mcr.microsoft.com:443
nodejs.org:443
objects.githubusercontent.com:443
pkg-containers.githubusercontent.com:443
production.cloudflare.docker.com:443
pypi.org:443
registry-1.docker.io:443
registry.npmjs.org:443
webi.sh:443
- name: Checkout
uses: actions/checkout@v3
- name: Build and run dev container task
uses: devcontainers/ci@v0.3
with:
runCmd: |
poe lint
poe test