Skip to content

Commit e1475c6

Browse files
Merge pull request #1856 from alphagov/theseanything/use-resuable-workflows
Use reusable workflows for pinned check and trello poster
2 parents 53ba2aa + fc0f642 commit e1475c6

2 files changed

Lines changed: 5 additions & 17 deletions

File tree

.github/workflows/require-pinned-github-actions.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,4 @@ on:
88
jobs:
99
check-actions-sha:
1010
name: Check actions are pinned to SHAs
11-
runs-on: ubuntu-24.04-arm
12-
steps:
13-
- name: Checkout code
14-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
15-
- name: Ensure SHA pinned actions
16-
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@6124774845927d14c601359ab8138699fa5b70c3 # v4.0.1
17-
with:
18-
allowlist: |
19-
alphagov/forms-deploy
11+
uses: alphagov/forms-deploy/.github/workflows/require-pinned-github-actions.yml@main

.github/workflows/trello_poster.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ on:
44
types: [opened, edited]
55
jobs:
66
trello-poster:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: lfdebrux/trello-poster-action@736f8f21f0cacf6f4142d5c9e09ebd4439e83318 # v1.2.0
10-
with:
11-
comment-body: ${{ github.event.pull_request.body }}
12-
github-url: ${{ github.event.pull_request.html_url }}
13-
trello-api-token: ${{ secrets.TRELLO_API_TOKEN }}
14-
trello-api-key: ${{ secrets.TRELLO_API_KEY }}
7+
uses: alphagov/forms-deploy/.github/workflows/trello-poster.yml@main
8+
secrets:
9+
TRELLO_API_TOKEN: ${{ secrets.TRELLO_API_TOKEN }}
10+
TRELLO_API_KEY: ${{ secrets.TRELLO_API_KEY }}

0 commit comments

Comments
 (0)