From 88c4233299fb700d61093bfca70543a955cb4aa6 Mon Sep 17 00:00:00 2001 From: ok-nick <25470747+ok-nick@users.noreply.github.com> Date: Mon, 18 Jul 2022 11:50:58 -0400 Subject: [PATCH] default to `github.token` --- README.md | 4 +--- action.yml | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 81e111e..c1a4576 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,6 @@ Github action to install and run [aftman](https://github.com/LPGhatguy/aftman); ```yaml steps: - uses: actions/setup-aftman@v1 - with: - token: ${{ github.token }} ``` ### Parameters @@ -23,7 +21,7 @@ steps: |`no-trust-check`|Whether to check trusts|`false`| |`trusts`|List of trusted tools separated by spaces|-| |`path`|Path to the `aftman.toml` directory|`./`| -|`token`|Github token from `github.token`|-| +|`token`|Github token from `github.token`|`github.token`| ## Credits [@nezuo](https://github.com/nezuo) - Installing `aftman` using `gh` diff --git a/action.yml b/action.yml index fecad34..e04c2b7 100644 --- a/action.yml +++ b/action.yml @@ -19,6 +19,7 @@ inputs: required: false token: description: 'Github token from `github.token`' + default: '${{ github.token }}' required: true runs: