Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0c2238c
results id 440 to 580
nishimotz Sep 4, 2024
e9f06ff
Judgment 修正
nishimotz Sep 6, 2024
cdbf311
refactor metadata
nishimotz Sep 6, 2024
ca545ab
テストの一覧に結果の件数
nishimotz Sep 6, 2024
c26b024
達成基準データ修正
nishimotz Sep 6, 2024
b4a4d0b
Merge branch 'master' into results202405
nishimotz Sep 23, 2024
18c2a00
Merge branch 'results202405' of github.com:waic/as_info into results2…
nishimotz Sep 23, 2024
f01330d
テスト追加
nishimotz Oct 2, 2024
198cc9b
データの追加と修正
nishimotz Oct 3, 2024
385dea3
check-data の自動実行
nishimotz Oct 3, 2024
d76cf17
debug actions
nishimotz Oct 3, 2024
2fc9870
スクリプトを移動
nishimotz Oct 3, 2024
5f67d05
debug actions
nishimotz Oct 3, 2024
2d29e65
file name change
nishimotz Oct 3, 2024
07a9219
job name change
nishimotz Oct 3, 2024
8e13c78
debug actions
nishimotz Oct 3, 2024
9c8f146
PRブランチをチェックアウト
nishimotz Oct 3, 2024
3585956
'SCR': 'client-side-script'
nishimotz Oct 3, 2024
8d5f3f8
WCAG 2.2 SC
nishimotz Oct 3, 2024
6f3e9eb
WCAGへのリンク
nishimotz Oct 3, 2024
2cf7f3c
add 0092-01 to tests.yaml
nishimotz Oct 9, 2024
faccafd
C12, C13, C14
nishimotz Oct 9, 2024
c72aa23
解説書リンクの並び順を変更
nishimotz Oct 11, 2024
00704be
Update node.js runtime version to 22.x
nishimotz Nov 6, 2024
ab45160
id 581-620, 結果の表示順序を逆に
nishimotz Nov 6, 2024
1249518
2024-10-10 テスト結果の追加
nishimotz Nov 15, 2024
7c39793
Update eslint and eslint-config-next versions
nishimotz Nov 15, 2024
1ed1a4d
merge master
nishimotz Nov 22, 2024
0307eff
update package-lock.json
nishimotz Nov 22, 2024
7e86ae0
npm update
nishimotz Nov 22, 2024
f920f5c
リンクセクションにWCAG 2.2 テクニック集へのリンクを追加
nishimotz Aug 21, 2025
a3f508f
Merge branch 'master' of github.com:waic/as_info into results202405
nishimotz Aug 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/checkdata.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# /// script
# dependencies = [
# "PyYAML",
# ]
# ///
import yaml
import sys


def detect_missing_tech_ids(tests, techs):
tech_ids_in_tests = set()
for content in tests.values():
for tech in content["techs"]:
tech_ids_in_tests.add(tech)
tech_ids = set(techs.keys())
return tech_ids_in_tests - tech_ids


def detect_missing_criterion_ids(tests, criteria):
criteria_ids_in_tests = set()
for content in tests.values():
for criterion in content["criteria"]:
criteria_ids_in_tests.add(criterion)
criteria_ids = set(criteria.keys())
return criteria_ids_in_tests - criteria_ids


def load_yaml(file_path):
try:
with open(file_path, "r") as file:
return yaml.safe_load(file)
except Exception as e:
print(f"Error loading {file_path}: {e}")
sys.exit(1)


if __name__ == "__main__":
tests = load_yaml("data/tests.yaml")
techs = load_yaml("data/techs.yaml")
criteria = load_yaml("data/criteria.yaml")

missing_tech_ids = detect_missing_tech_ids(tests, techs)
if missing_tech_ids:
print(f"missing {missing_tech_ids}")
sys.exit(1)

missing_criterion_ids = detect_missing_criterion_ids(tests, criteria)
if missing_criterion_ids:
print(f"missing {missing_criterion_ids}")
sys.exit(1)

sys.exit(0)
37 changes: 37 additions & 0 deletions .github/workflows/checkdata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: checkdata

on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- master

jobs:
checkdata:
if: github.event.pull_request.merged == true || github.event_name == 'push' || github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: プルリクエストの場合、PRブランチをチェックアウト
if: github.event_name == 'pull_request'
run: git checkout ${{ github.event.pull_request.head.sha }}

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyyaml

- name: Run checkdata.py
run: python3 .github/workflows/checkdata.py
Comment on lines +14 to +37

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI about 1 month ago

To fix the problem, add a permissions block to the workflow file. The minimal required permission for this workflow is contents: read, which allows the workflow to check out code but does not grant unnecessary write access. The permissions block should be added at the top level of the workflow (just after the name: and before on:), so it applies to all jobs unless overridden. No other changes are needed, as the workflow does not appear to require any additional permissions.


Suggested changeset 1
.github/workflows/checkdata.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/checkdata.yml b/.github/workflows/checkdata.yml
--- a/.github/workflows/checkdata.yml
+++ b/.github/workflows/checkdata.yml
@@ -1,3 +1,5 @@
+permissions:
+  contents: read
 name: checkdata
 
 on:
EOF
@@ -1,3 +1,5 @@
permissions:
contents: read
name: checkdata

on:
Copilot is powered by AI and may make mistakes. Always verify output.
2 changes: 1 addition & 1 deletion app.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
runtime: nodejs20
runtime: nodejs22
env_variables:
PORT: 8080
41 changes: 41 additions & 0 deletions data/criteria.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@
level: AAA
wcag20url: time-limits-server-timeout.html
wcag21url: re-authenticating.html
2.2.6:
title: タイムアウト
level: AAA
wcag21url: timeouts.html
2.3.1:
title: 3回の閃光、又は閾値以下
level: A
Expand Down Expand Up @@ -256,6 +260,18 @@
level: AAA
wcag20url: navigation-mechanisms-headings.html
wcag21url: section-headings.html
2.4.11:
title: 隠されないフォーカス (最低限)
level: AA
wcag22url: tbd
2.4.12:
title: 隠されないフォーカス (高度)
level: AAA
wcag22url: tbd
2.4.13:
title: フォーカスの外観
level: AAA
wcag22url: tbd
2.5.1:
title: ポインタのジェスチャ
level: A
Expand All @@ -280,6 +296,14 @@
title: 入力メカニズム非依存
level: AAA
wcag21url: concurrent-input-mechanisms.html
2.5.7:
title: ドラッグ動作
level: AA
wcag22url: tbd
2.5.8:
title: ターゲットのサイズ (最低限)
level: AA
wcag22url: tbd
3.1.1:
title: ページの言語
level: A
Expand Down Expand Up @@ -337,6 +361,10 @@
level: AAA
wcag20url: consistent-behavior-no-extreme-changes-context.html
wcag21url: change-on-request.html
3.2.6:
title: 一貫したヘルプ
level: A
wcag22url: tbd
3.3.1:
title: エラーの特定
level: A
Expand Down Expand Up @@ -370,11 +398,24 @@
level: AAA
wcag20url: minimize-error-reversible-all.html
wcag21url: error-prevention-all.html
3.3.7:
title: 冗長な入力項目
level: A
wcag22url: tbd
3.3.8:
title: アクセシブルな認証 (最低限)
level: AA
wcag22url: tbd
3.3.9:
title: アクセシブルな認証 (高度)
level: AAA
wcag22url: tbd
4.1.1:
title: 構文解析
level: A
wcag20url: ensure-compat-parses.html
wcag21url: parsing.html
wcag22note: 廃止・削除
4.1.2:
title: 名前(name)・役割(role)及び値(value)
level: A
Expand Down
2 changes: 2 additions & 0 deletions data/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
author: ウェブアクセシビリティ基盤委員会(WAIC)
pub_date: 2020年4月1日
mod_date: 2024年**月**日
last_reviewed_result_id: 439
status: レビュー作業中の情報が含まれることがあります
Loading
Loading