{"id":16630154,"url":"https://github.com/anoopt/ms-graph-create-task","last_synced_at":"2026-06-30T05:32:11.143Z","repository":{"id":114713277,"uuid":"587843116","full_name":"anoopt/ms-graph-create-task","owner":"anoopt","description":"☑ A GitHub action to create a planner task with Microsoft Graph using MSAL","archived":false,"fork":false,"pushed_at":"2023-01-12T15:16:24.000Z","size":805,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-25T15:42:52.046Z","etag":null,"topics":["microsoft-graph","planner"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anoopt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-11T18:05:55.000Z","updated_at":"2025-09-20T09:04:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"36b6ae6a-5a63-41c6-9baf-f4b538dcf1b5","html_url":"https://github.com/anoopt/ms-graph-create-task","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/anoopt/ms-graph-create-task","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoopt%2Fms-graph-create-task","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoopt%2Fms-graph-create-task/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoopt%2Fms-graph-create-task/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoopt%2Fms-graph-create-task/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anoopt","download_url":"https://codeload.github.com/anoopt/ms-graph-create-task/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anoopt%2Fms-graph-create-task/sbom","scorecard":{"id":197801,"data":{"date":"2025-08-11","repo":{"name":"github.com/anoopt/ms-graph-create-task","commit":"f3dc35f47a7b6808f1b8d4a76b7b525ae431574f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/11 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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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":"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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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 'main'"],"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":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"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-16T22:08:42.636Z","repository_id":114713277,"created_at":"2025-08-16T22:08:42.636Z","updated_at":"2025-08-16T22:08:42.636Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34954283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"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":["microsoft-graph","planner"],"created_at":"2024-10-12T04:45:17.390Z","updated_at":"2026-06-30T05:32:11.137Z","avatar_url":"https://github.com/anoopt.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Action to create a task with Microsoft Graph using MSAL\n\nThis action creates a planner task and assigns it to a user. This action can be used when say for example a pull request is created and some one has to review it. The task that gets created will have some details about the pull request.\n\n## What it does\n\n![Action](./assets/action.png)\n\n## Pre requisites\n\nThis action uses Microsoft Graph to create a task. So please make sure that you [register an application in Azure AD](https://docs.microsoft.com/en-us/graph/auth-register-app-v2), provide that app `Tasks.ReadWrite.All` permissions and create a client secret for that.\n\nIn your GitHub repo [create 4 secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets) with the following information:\n\n* CLIENT_ID - The Id of the app registration created above\n* CLIENT_SECRET - A secret of the app registration created above.\n* TENANT_ID - The Id of your Microsoft 365 tenant\n* PLAN_ID - The Id planner plan where the task will be created\n\n## Usage\n\nBelow is a workflow code\n\n```workflow\nname: Microsoft Graph Task\n\non: [pull_request]\n\njobs:\n  create-task:\n    runs-on: ubuntu-latest\n    name: Create Task\n    steps:\n    - name: Create a task for the user\n      uses: anoopt/ms-graph-create-task@v1\n      with:\n        clientId: ${{ secrets.CLIENT_ID }}\n        clientSecret: ${{ secrets.CLIENT_SECRET }}\n        tenantId: ${{ secrets.TENANT_ID }}\n        planId: ${{ secrets.PLAN_ID }}\n        title: \"Review pull request.\"\n        userId: \"e5529803-90d6-422a-ad0d-85bfbad10348\"\n        description: \"Please review the pull request. Link to the pull request ${{ github.event.pull_request.html_url }}.\"\n```\n\nIn the above example, the userId is the Id of the user who will be assigned the task. You can get the Id of the user from their UPN using Graph Explorer. \n\nWhen there is a pull request, the above workflow will create a task for a user with id 'e5529803-90d6-422a-ad0d-85bfbad10348' due by the next week (automatic as no due date is specified).  \n\n## More Information\n\nAll of the information attached to an event is available in the `github.event` variable. To see the possible values, you can use the following step in your workflow:\n\n```yaml\n- run: echo '${{ toJson(github.event) }}'\n```\n\n```workflow\nname: Microsoft Graph Task\n\non: [pull_request]\n\njobs:\n  create-task:\n    runs-on: ubuntu-latest\n    name: Create Task\n    steps:\n    - name: Create task on the specified date and time\n      uses: anoopt/ms-graph-create-task@v1\n      with:\n        clientId: ${{ secrets.CLIENT_ID }}\n        clientSecret: ${{ secrets.CLIENT_SECRET }}\n        tenantId: ${{ secrets.TENANT_ID }}\n        planId: ${{ secrets.PLAN_ID }}\n        title: \"Review pull request.\"\n        userId: \"e5529803-90d6-422a-ad0d-85bfbad10348\"\n        bucketId: \"Ys2XyYjrnkCQDmOZEJ8KDZcADKs9\"\n        dueByDate: \"2023-01-28\"\n        dueByTime: \"10:00\"\n        description: \"A new PR has been submitted on ${{ github.repository }} by ${{ github.actor }}. Link to the pull request ${{ github.event.pull_request.html_url }}.\"\n        priority: \"1\"\n```\n\nIn the above example, the userId is the Id of the user who will be assigned the task. You can get the Id of the user from their UPN using Graph Explorer. \n\nWhen there is a pull request, the above workflow will create a task for a user with id 'e5529803-90d6-422a-ad0d-85bfbad10348' due by 28th Jan 2023 10AM. The task will be created in the bucket with Id 'Ys2XyYjrnkCQDmOZEJ8KDZcADKs9' and the priority will be set to 1 (urgent). The description will have the details of the pull request.\n\n## Task that gets created\n\n![Task](./assets/endresult.png)\n\n## Other example scenarios\n- Create a task when an issue has been tagged with a specific label\n- Create a task to the marketing team when a new release is created","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanoopt%2Fms-graph-create-task","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanoopt%2Fms-graph-create-task","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanoopt%2Fms-graph-create-task/lists"}