Skip to content

Commit 3a63a94

Browse files
authored
Merge pull request #49 from ForsakenHarmony/main
fix: don't impersonante users
2 parents 46411f0 + da74055 commit 3a63a94

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
5454
| git-commit-message | Commit message | `terraform-docs: automated action` | false |
5555
| git-push | If true it will commit and push the changes | `false` | false |
5656
| git-push-sign-off | If true it will sign-off commit | `false` | false |
57-
| git-push-user-email | If empty the no-reply email of the PR author will be used (i.e. `${GITHUB\_ACTOR}@users.noreply.github.com`) | `""` | false |
58-
| git-push-user-name | If empty the name of the PR author will be used (i.e. `${GITHUB\_ACTOR}`) | `""` | false |
57+
| git-push-user-email | If empty the no-reply email of the GitHub Actions bot will be used (i.e. `github-actions[bot]@users.noreply.github.com`) | `""` | false |
58+
| git-push-user-name | If empty the name of the GitHub Actions bot will be used (i.e. `github-actions[bot]`) | `""` | false |
5959
| indention | Indention level of Markdown sections [1, 2, 3, 4, 5] | `2` | false |
6060
| output-file | File in module directory where the docs should be placed | `USAGE.md` | false |
6161
| output-format | terraform-docs format to generate content (see [all formats](https://github.com/terraform-docs/terraform-docs/blob/master/docs/FORMATS\_GUIDE.md)) (ignored if `config-file` is set) | `markdown table` | false |

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ inputs:
5252
required: false
5353
default: "false"
5454
git-push-user-name:
55-
description: If empty the name of the PR author will be used (i.e. `${GITHUB_ACTOR}`)
55+
description: If empty the name of the GitHub Actions bot will be used (i.e. `github-actions[bot]`)
5656
required: false
5757
default: ""
5858
git-push-user-email:
59-
description: If empty the no-reply email of the PR author will be used (i.e. `${GITHUB_ACTOR}@users.noreply.github.com`)
59+
description: If empty the no-reply email of the GitHub Actions bot will be used (i.e. `github-actions[bot]@users.noreply.github.com`)
6060
required: false
6161
default: ""
6262
git-commit-message:

src/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ git_setup() {
5454
if [ -n "${GIT_PUSH_USER_NAME}" ]; then
5555
git config --global user.name "${GIT_PUSH_USER_NAME}"
5656
else
57-
git config --global user.name "${GITHUB_ACTOR}"
57+
git config --global user.name github-actions[bot]
5858
fi
5959

6060
if [ -n "${GIT_PUSH_USER_EMAIL}" ]; then
6161
git config --global user.email "${GIT_PUSH_USER_EMAIL}"
6262
else
63-
git config --global user.email "${GITHUB_ACTOR}"@users.noreply.github.com
63+
git config --global user.email github-actions[bot]@users.noreply.github.com
6464
fi
6565

6666
git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true

0 commit comments

Comments
 (0)