{"id":20645001,"url":"https://github.com/romanow/google-sheet-autograder-marker","last_synced_at":"2026-05-18T03:34:26.700Z","repository":{"id":65155282,"uuid":"487658928","full_name":"Romanow/google-sheet-autograder-marker","owner":"Romanow","description":"Github Action for mark autograding results in Google Sheet","archived":false,"fork":false,"pushed_at":"2022-09-13T15:53:40.000Z","size":1112,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-03T20:55:54.306Z","etag":null,"topics":["github-actions","github-classroom","google-sheets","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Romanow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-01T22:47:03.000Z","updated_at":"2022-05-02T19:24:44.000Z","dependencies_parsed_at":"2023-01-04T12:32:30.579Z","dependency_job_id":null,"html_url":"https://github.com/Romanow/google-sheet-autograder-marker","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"75ba47be1e62150b9493c306caa70f31b79eb34b"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Romanow/google-sheet-autograder-marker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romanow%2Fgoogle-sheet-autograder-marker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romanow%2Fgoogle-sheet-autograder-marker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romanow%2Fgoogle-sheet-autograder-marker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romanow%2Fgoogle-sheet-autograder-marker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Romanow","download_url":"https://codeload.github.com/Romanow/google-sheet-autograder-marker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romanow%2Fgoogle-sheet-autograder-marker/sbom","scorecard":{"id":122529,"data":{"date":"2025-08-11","repo":{"name":"github.com/Romanow/google-sheet-autograder-marker","commit":"75ba47be1e62150b9493c306caa70f31b79eb34b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/4 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/Romanow/google-sheet-autograder-marker/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/Romanow/google-sheet-autograder-marker/build.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-7r3h-m5j6-3q42","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T02:49:11.805Z","repository_id":65155282,"created_at":"2025-08-16T02:49:11.805Z","updated_at":"2025-08-16T02:49:11.805Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272527442,"owners_count":24949838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","github-classroom","google-sheets","typescript"],"created_at":"2024-11-16T16:18:23.522Z","updated_at":"2026-05-18T03:34:26.669Z","avatar_url":"https://github.com/Romanow.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Sheet auto grader\n\n## Задача\n\nАвтоматически отмечаем `+` в таблице Google Sheet при успешном прохождении тестов.\n\nНа вход имеем таблицу:\n\n| # |    Фамилия Имя    |   Контакты   |  Github   | ... |\n|---|-------------------|--------------|-----------|-----|\n| 1 | Романов Алексей   | @romanowalex | romanow   | ... |\n| 2 | Иванов Иван       | @notexisting | ivanov    | ... |\n| 3 | Сидоренко Николай | @sidorenko   | sidorenko | ... |\n\nПо имени пользователя ищем строку, но номеру лабораторной вычисляем столбец.\n\n## Использование\n\n```yaml\n- uses: romanow/google-sheet-autograder-marker@v1.0\n  with:\n    sheet_id: \"\u003cgoogle-sheet-id\u003e\"\n    google_token: \"\u003cgoogle-service-account-token\u003e\"\n    homework_number: 1\n    user_column: \"D\"\n    column_offset: \"F\"\n    mark: \"'+\"\n```\n\n## Реализация\n\n#### Входные данные\n\n| Название        | Тип    | Описание                      | Обязательность | Значение по-умолчанию |\n|-----------------|:------:|-------------------------------|:--------------:|:---------------------:|\n| sheet_id        | string | ID таблицы в Google Sheet     | +              |                       |\n| google_token    | string | Google Service token          | +              |                       |\n| homework_number | number | Номер работы                  | +              |                       |\n| mark            | string | Отметка                       | -              | +                     |\n| user_column     | string | Номер колонки с пользователем | -              | D                     |\n| column_offset   | string | Базовое смещение колонки      | -              | F                     |\n\n#### Алгоритм выполнения\n\n1. Google API key получаем через параметры action. Регистрируем как JWT.\n2. Пользователя, который запустил сборку, получаем из `github_user`, который [подставляется в default](action.yml) как\n   параметр Github Context (`${{ github.actor }}`).\n3. Запрашиваем строки 1:100 в колонке `user_column`, в полученных данных ищем пользователя. Если нашли, то получаем\n   индекс строки `row`.\n4. По номеру лабораторной работы `homework_ number` и базового смещения `column_offset` вычисляем номер колонки\n   `column`, в которой нужно поставить отметку.\n5. Ставим отметку `mark` в строке `row` из п.3 и колонке `column`.\n\n#### Google Service Account\n\n1. Зайти в Google Cloud Platform -\u003e [Manage Resources](https://console.cloud.google.com/cloud-resource-manager) -\u003e\n   Create Project: Github Classroom Autograder.\n2. [Manage Service Account](https://console.cloud.google.com/iam-admin/serviceaccounts) -\u003e Create Service Account.\n   Использовать роль Viewer.\n3. [Включить Google Sheet API](https://console.cloud.google.com/apis/api/sheets.googleapis.com/overview) для Github\n   Classroom Autograder.\n4. Создать Credentials для Service Account: `Credetials` -\u003e `Service Accounts` -\u003e `Keys` -\u003e `Add Key` -\u003e `Create new key`: JSON -\u003e `Create`.\n5. Будет скачан файл в фомате `json`, все содержимое этого файла добавить как Organization Secret с именем `GOOGLE_API_KEY`.\n6. Добавить Service Account (email) как редактора в Google Sheet.\n\nСоздание Service Account описано [здесь](https://developers.google.com/identity/protocols/oauth2/service-account).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanow%2Fgoogle-sheet-autograder-marker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromanow%2Fgoogle-sheet-autograder-marker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanow%2Fgoogle-sheet-autograder-marker/lists"}