Skip to content

Commit

Permalink
fix: Define required secrets for workflow dispatches
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Buchleitner <[email protected]>
  • Loading branch information
mabunixda committed May 8, 2024
1 parent 5559560 commit c58dd69
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 17 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/changelog-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
name: "Infralovers Changelog Automation template"

on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]

workflow_call:
secrets:
BOT_ACCESS_TOKEN:
description: 'The GitHub token for the bot account'
required: true


jobs:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ on:
jobs:
changelog-automation:
uses: ./.github/workflows/changelog-automation.yml
secrets: inherit
secrets:
BOT_ACCESS_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}
6 changes: 4 additions & 2 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ jobs:

pre-commit:
uses: ./.github/workflows/pre-commit.yml
secrets: inherit
secrets:
BOT_ACCESS_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}

build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -162,4 +163,5 @@ jobs:
needs: [ pre-commit, build ]
if: inputs.release && github.event_name != 'pull_request'
uses: ./.github/workflows/release.yml
secrets: inherit
secrets:
BOT_ACCESS_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}
3 changes: 2 additions & 1 deletion .github/workflows/pr-valid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ on:
jobs:
pr-validation:
uses: ./.github/workflows/pr-validation.yml
secrets: inherit
secrets:
BOT_ACCESS_TOKEN: "${{ fromJSON(secrets.VAULT_KV_1D187965_OP_GITHUB_INFRALOVERS).PAT }}"
4 changes: 4 additions & 0 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
# - synchronize

workflow_call:
secrets:
BOT_ACCESS_TOKEN:
description: 'The GitHub token for the bot account'
required: true

permissions:
pull-requests: write
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
name: Pre-Commit validation

on:
# pull_request:
# branches:
# - main
workflow_call:
secrets:
BOT_ACCESS_TOKEN:
description: 'The GitHub token for the bot account'
required: true
outputs:
version:
description: 'The version of the release'
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ name: Release Automation template"

on:
workflow_call:

# workflow_dispatch:
# push:
# branches:
# - main
secrets:
BOT_ACCESS_TOKEN:
description: 'The GitHub token for the bot account'
required: true

jobs:
release:
Expand Down

0 comments on commit c58dd69

Please sign in to comment.