From 006a2e9cd00987aae113a0a2adce78446eacbb3d Mon Sep 17 00:00:00 2001 From: mohammad-oghli Date: Sun, 20 Aug 2023 16:39:59 +0400 Subject: [PATCH 1/3] update personal access token instruction --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bd30f33..92fded9 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ This exercise checks your ability to manage GitHub Apps for your organization. I Please complete the instructions below: 1. Create an organization-owned copy of this repository using the [Use this template](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-from-a-template#creating-a-repository-from-a-template) button. -2. Create a personal access token (PAT) with the `read:org` scope selected. +2. Create a personal access token (PAT) of type **classic tokens** with the `read:org` and `write:org` scope selected. 3. Store the PAT as an [organization secret](https://docs.github.com/en/codespaces/managing-codespaces-for-your-organization/managing-encrypted-secrets-for-your-repository-and-organization-for-codespaces#adding-secrets-for-an-organization) titled `EXERCISE_PAT`. We recommend making the secret available only to your newly created repository. 4. Install a GitHub App of your choice on your organization and select only your repository as the installation target. 5. If your chosen GitHub App requires a configuration file, push that file to this repository to trigger the grading workflow. If your chosen GitHub App doesn't require configuration, push any commits to this repository or change and push changes to [`grading-config.yml`](grading_config.yml) to trigger the grading workflow. From 45829cba696c2eb01625531dc9a250389051f6f5 Mon Sep 17 00:00:00 2001 From: mohammad-oghli Date: Sun, 20 Aug 2023 16:59:17 +0400 Subject: [PATCH 2/3] update store PAT as orginization secret --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 92fded9..f767ab2 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Please complete the instructions below: 1. Create an organization-owned copy of this repository using the [Use this template](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-from-a-template#creating-a-repository-from-a-template) button. 2. Create a personal access token (PAT) of type **classic tokens** with the `read:org` and `write:org` scope selected. -3. Store the PAT as an [organization secret](https://docs.github.com/en/codespaces/managing-codespaces-for-your-organization/managing-encrypted-secrets-for-your-repository-and-organization-for-codespaces#adding-secrets-for-an-organization) titled `EXERCISE_PAT`. We recommend making the secret available only to your newly created repository. +3. Store the PAT as an [organization secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) titled `EXERCISE_PAT` in actions tab. We recommend making the secret available only to your newly created repository. 4. Install a GitHub App of your choice on your organization and select only your repository as the installation target. 5. If your chosen GitHub App requires a configuration file, push that file to this repository to trigger the grading workflow. If your chosen GitHub App doesn't require configuration, push any commits to this repository or change and push changes to [`grading-config.yml`](grading_config.yml) to trigger the grading workflow. From df6e5e4f8799a75b27d335769b64f346c0f49cd4 Mon Sep 17 00:00:00 2001 From: mohammad-oghli Date: Sun, 20 Aug 2023 17:19:49 +0400 Subject: [PATCH 3/3] set Workflow permissions for organization --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f767ab2..8325496 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Please complete the instructions below: 1. Create an organization-owned copy of this repository using the [Use this template](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-from-a-template#creating-a-repository-from-a-template) button. 2. Create a personal access token (PAT) of type **classic tokens** with the `read:org` and `write:org` scope selected. -3. Store the PAT as an [organization secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) titled `EXERCISE_PAT` in actions tab. We recommend making the secret available only to your newly created repository. +3. Store the PAT as an [organization secret](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository) titled `EXERCISE_PAT` in actions tab. We recommend making the secret available only to your newly created repository. Then go to organizaion setting and from **Actions** tab -> **General** set the Workflow permissions to `read and write permissions`. 4. Install a GitHub App of your choice on your organization and select only your repository as the installation target. 5. If your chosen GitHub App requires a configuration file, push that file to this repository to trigger the grading workflow. If your chosen GitHub App doesn't require configuration, push any commits to this repository or change and push changes to [`grading-config.yml`](grading_config.yml) to trigger the grading workflow.