diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..5ace4600 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 4a71c495..b0700a47 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -2,13 +2,19 @@ name: Validate JSONs on: [pull_request] +permissions: + contents: read + jobs: verify-json-validation: runs-on: oracle-2cpu-8gb-x86-64 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 + with: + persist-credentials: false + - uses: actions/setup-python@v6 + with: + python-version: '>= 3.14' + pip-install: check-jsonschema - name: Validate JSON - uses: docker://orrosenblatt/validate-json-action:latest - env: - INPUT_SCHEMA: /schema.json - INPUT_JSONS: /people.json + run: check-jsonschema --schemafile schema.json people.json diff --git a/schema.json b/schema.json index 5d61062c..eb3af731 100644 --- a/schema.json +++ b/schema.json @@ -18,7 +18,7 @@ "youtube": {"anyOf": [ { "maxLength": 0 }, {"type": "string", "format": "uri", "default": "null"} ] }, "priority": {"anyOf": [ { "maxLength": 0 }, { "type": "number" } ] }, "image": {"type": "string"}, - "email": {"type": "string", "pattern": "^[^\\s@]+\\![^\\s@]+\\.[^\\s@]+$"}, + "email": {"type": "string", "pattern": "^[^\\s@]+![^\\s@]+\\.[^\\s@]+$"}, "slack_id": {"type": "string"}, "category": { "type": "array",