diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml index 1ba9980..721e526 100644 --- a/.github/workflows/generate-docs.yml +++ b/.github/workflows/generate-docs.yml @@ -13,25 +13,16 @@ concurrency: group: '${{ github.workflow }}-${{ github.event_name }}' cancel-in-progress: true -permissions: - contents: write - jobs: generate-docs: name: Generate action documentation runs-on: elvia-runner + permissions: + contents: write steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Get GitHub App token - uses: actions/create-github-app-token@v1 - id: app-token - with: - app-id: ${{ vars.GH_APP_ID }} - private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} - owner: ${{ github.repository_owner }} - - name: Generate docs uses: 3lvia/gh-actions-docs@v1 with: @@ -47,11 +38,11 @@ jobs: exit 0 fi - git config user.email '${{ vars.GH_APP_USER_EMAIL }}' - git config user.name '${{ vars.GH_APP_USERNAME }}' + git config user.name 'github-actions[bot]' + git config user.email '41898282+github-actions[bot]@users.noreply.github.com' git add README.md git commit -m 'Update action documentation' git push env: - GH_TOKEN: ${{ steps.app-token.outputs.token }} + GH_TOKEN: ${{ github.token }} diff --git a/.github/workflows/test-actions.yml b/.github/workflows/test-actions.yml index 3fe2bef..06fd51a 100644 --- a/.github/workflows/test-actions.yml +++ b/.github/workflows/test-actions.yml @@ -489,8 +489,8 @@ jobs: - name: Check that secret was fetched successfully run: | if [[ -z '${{ env.APP_INSIGHTS_NAME }}' ]]; then - echo "Secret was not fetched." + echo 'Secret was not fetched.' exit 1 else - echo "Secret was fetched successfully!" + echo 'Secret was fetched successfully!' fi diff --git a/vault/action.yml b/vault/action.yml index bf2f0f8..1a1263b 100644 --- a/vault/action.yml +++ b/vault/action.yml @@ -1,5 +1,5 @@ name: Vault -description: "Get secrets from Elvia's Vault." +description: "Get secrets from Elvia's Vault for use in GitHub Actions." inputs: system: description: 'System name is used to log in to Vault using the correct role.'