diff --git a/.github/workflows/deployment-start.yml b/.github/workflows/deployment-start.yml index 97cf25b..87b86bd 100644 --- a/.github/workflows/deployment-start.yml +++ b/.github/workflows/deployment-start.yml @@ -15,10 +15,6 @@ on: description: "Slack channel to post to" secrets: - github-token: - required: true - description: "GitHub token for deployments" - slack-token: required: true description: "Slack token for posting messages" @@ -52,5 +48,5 @@ jobs: - id: github uses: chrnorm/deployment-action@v2 with: - token: ${{ secrets.github-token }} + token: ${{ github.token }} environment: ${{ inputs.github-environment }} diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index fabb81a..cff758f 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -25,10 +25,6 @@ on: description: "Slack thread timestamp" secrets: - github-token: - required: true - description: "GitHub token for deployments" - slack-token: required: true description: "Slack token for posting messages" @@ -51,6 +47,6 @@ jobs: - id: github uses: chrnorm/deployment-status@v2 with: - token: ${{ secrets.github-token }} + token: ${{ github.token }} deployment-id: ${{ inputs.github-deployment-id }} state: ${{ inputs.github-deployment-state }}