From be2cc3eae8134089663fd5434f61106c167b5029 Mon Sep 17 00:00:00 2001 From: CarolMebiom <59604360+CarolMebiom@users.noreply.github.com> Date: Wed, 23 Apr 2025 15:19:56 +0100 Subject: [PATCH 1/2] Update README.md as per issue #232 Update README.me to use the latest version of the action (v2) --- README.md | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 91efed1..464d155 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ jobs: hello-world: runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v1 + - uses: actions/create-github-app-token@v2 id: app-token with: app-id: ${{ vars.APP_ID }} @@ -47,7 +47,7 @@ jobs: auto-format: runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v1 + - uses: actions/create-github-app-token@v2 id: app-token with: # required @@ -73,7 +73,7 @@ jobs: auto-format: runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v1 + - uses: actions/create-github-app-token@v2 id: app-token with: # required @@ -98,7 +98,7 @@ jobs: auto-format: runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v1 + - uses: actions/create-github-app-token@v2 id: app-token with: # required @@ -135,7 +135,7 @@ jobs: hello-world: runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v1 + - uses: actions/create-github-app-token@v2 id: app-token with: app-id: ${{ vars.APP_ID }} @@ -157,7 +157,7 @@ jobs: hello-world: runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v1 + - uses: actions/create-github-app-token@v2 id: app-token with: app-id: ${{ vars.APP_ID }} @@ -182,7 +182,7 @@ jobs: hello-world: runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v1 + - uses: actions/create-github-app-token@v2 id: app-token with: app-id: ${{ vars.APP_ID }} @@ -207,7 +207,7 @@ jobs: hello-world: runs-on: ubuntu-latest steps: - - uses: actions/create-github-app-token@v1 + - uses: actions/create-github-app-token@v2 id: app-token with: app-id: ${{ vars.APP_ID }} @@ -249,7 +249,7 @@ jobs: owners-and-repos: ${{ fromJson(needs.set-matrix.outputs.matrix) }} steps: - - uses: actions/create-github-app-token@v1 + - uses: actions/create-github-app-token@v2 id: app-token with: app-id: ${{ vars.APP_ID }} @@ -279,7 +279,7 @@ jobs: steps: - name: Create GitHub App token id: create_token - uses: actions/create-github-app-token@v1 + uses: actions/create-github-app-token@v2 with: app-id: ${{ vars.GHES_APP_ID }} private-key: ${{ secrets.GHES_APP_PRIVATE_KEY }} @@ -318,7 +318,7 @@ steps: echo "private-key=$private_key" >> "$GITHUB_OUTPUT" - name: Generate GitHub App Token id: app-token - uses: actions/create-github-app-token@v1 + uses: actions/create-github-app-token@v2 with: app-id: ${{ vars.APP_ID }} private-key: ${{ steps.decode.outputs.private-key }} @@ -341,10 +341,6 @@ steps: The reason we define one `permision-` input per permission is to benefit from type intelligence and input validation built into GitHub's action runner. -### `skip-token-revoke` - -**Optional:** If truthy, the token will not be revoked when the current job is complete. - ### `github-api-url` **Optional:** The URL of the GitHub REST API. Defaults to the URL of the GitHub Rest API where the workflow is run from. From dd41f4dfc0ce56ede6a8dc00f51c173531034f12 Mon Sep 17 00:00:00 2001 From: CarolMebiom <59604360+CarolMebiom@users.noreply.github.com> Date: Wed, 23 Apr 2025 15:21:12 +0100 Subject: [PATCH 2/2] Correct removal --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 464d155..4a73bc3 100644 --- a/README.md +++ b/README.md @@ -341,6 +341,10 @@ steps: The reason we define one `permision-` input per permission is to benefit from type intelligence and input validation built into GitHub's action runner. +### `skip-token-revoke` + +**Optional:** If truthy, the token will not be revoked when the current job is complete. + ### `github-api-url` **Optional:** The URL of the GitHub REST API. Defaults to the URL of the GitHub Rest API where the workflow is run from.