Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit a3eb81e

Browse files
Merge pull request #3069 from philips-labs/npalm/ci
chore: ci
2 parents 1fc52ac + 5c70d0b commit a3eb81e

File tree

35 files changed

+1361
-52
lines changed

35 files changed

+1361
-52
lines changed

Diff for: .github/workflows/auto-approve-dependabot.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Auto approve dependabot
2-
32
# Warning: The pull_request_target event is granted a read/write repository
43
# token and can access secrets, even when it is triggered from a fork. Although
54
# the workflow runs in the context of the base of the pull request, you should
@@ -8,12 +7,11 @@ name: Auto approve dependabot
87
# the base branch, and to help prevent cache poisoning, you should not save the
98
# cache if there is a possibility that the cache contents were altered.
109
on: pull_request_target
11-
1210
jobs:
1311
approve:
1412
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
1513
runs-on: ubuntu-latest
1614
steps:
17-
- uses: hmarr/[email protected]
15+
- uses: hmarr/auto-approve-action@de8ae18c173c131e182d4adf2c874d8d2308a85b # ratchet:hmarr/auto-approve-action@v3.1.0
1816
with:
1917
github-token: "${{ secrets.GITHUB_TOKEN }}"

Diff for: .github/workflows/lambda-runner-binaries-syncer.yml

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
paths:
88
- .github/workflows/lambda-runner-binaries-syncer.yml
99
- "modules/runner-binaries-syncer/lambdas/runner-binaries-syncer/**"
10-
1110
jobs:
1211
build:
1312
uses: ./.github/workflows/lambda-template.yml

Diff for: .github/workflows/lambda-runners.yml

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
paths:
88
- .github/workflows/lambda-runners.yml
99
- "modules/runners/lambdas/runners/**"
10-
1110
jobs:
1211
build:
1312
uses: ./.github/workflows/lambda-template.yml

Diff for: .github/workflows/lambda-webhook.yml

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
paths:
88
- .github/workflows/lambda-webhook.yml
99
- "modules/webhook/lambdas/webhook/**"
10-
1110
jobs:
1211
build:
1312
uses: ./.github/workflows/lambda-template.yml

Diff for: .github/workflows/packer-build.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@ on:
88
- "images/**"
99
- ".github/workflows/packer-build.yml"
1010
- "module/runners/templates/**"
11-
1211
env:
1312
AWS_REGION: eu-west-1
14-
1513
jobs:
1614
verify_packer:
1715
name: Verify packer
1816
runs-on: ubuntu-latest
1917
container:
20-
image: hashicorp/packer:1.7.8
18+
image: index.docker.io/hashicorp/packer@sha256:f795aace438ef92e738228c21d5ceb7d5dd73ceb7e0b1efab5b0e90cbc4d4dcd # ratchet:hashicorp/packer:1.7.8
2119
strategy:
2220
matrix:
2321
image: ["linux-amzn2", "windows-core-2019", "windows-core-2022", "ubuntu-focal", "ubuntu-jammy", "ubuntu-jammy-arm64"]
@@ -26,13 +24,10 @@ jobs:
2624
working-directory: images/${{ matrix.image }}
2725
steps:
2826
- name: "Checkout"
29-
uses: actions/checkout@v3
30-
27+
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # ratchet:actions/checkout@v3
3128
- name: packer init
3229
run: packer init .
33-
3430
- name: check packer formatting
3531
run: packer fmt -recursive -check=true .
36-
3732
- name: packer validate
3833
run: packer validate .

Diff for: .github/workflows/release.yml

+7-18
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
name: Release build
2-
32
on:
43
push:
54
branches:
65
- main
76
- v1
87
workflow_dispatch:
9-
108
jobs:
119
prepare:
1210
name: Create dist
@@ -24,49 +22,43 @@ jobs:
2422
env:
2523
LAMBDA: ${{ matrix.lambda }}
2624
run: echo "name=${LAMBDA##*/}" >> $GITHUB_OUTPUT
27-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # ratchet:actions/checkout@v3
2826
- name: Add zip
2927
run: apt update && apt install zip
3028
- name: Build dist
3129
working-directory: ${{ matrix.lambda }}
3230
run: yarn install && yarn run test && yarn dist
33-
- uses: actions/upload-artifact@v3
31+
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # ratchet:actions/upload-artifact@v3
3432
with:
3533
name: ${{ steps.lambda.outputs.name }}
3634
path: ${{ matrix.lambda }}/${{ steps.lambda.outputs.name }}.zip
3735
retention-days: 1
38-
3936
release:
4037
name: release
4138
runs-on: ubuntu-latest
42-
needs:
43-
prepare
39+
needs: prepare
4440
outputs:
4541
releases_created: ${{ steps.release.outputs.releases_created }}
4642
tag_name: ${{ steps.release.outputs.tag_name }}
4743
steps:
4844
- name: Get installation token
49-
uses: philips-software/[email protected]
45+
uses: philips-software/app-token-action@a37926571e4cec6f219e06727136efdd073d8657 # ratchet:philips-software/app-token-action@v1.1.2
5046
id: token
5147
with:
5248
app_id: ${{ secrets.FOREST_RELEASER_APP_ID }}
5349
app_base64_private_key: ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY_BASE64 }}
5450
auth_type: installation
55-
56-
5751
- name: Extract branch name
5852
id: branch
5953
shell: bash
6054
run: echo "name=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
61-
6255
- name: Release
6356
id: release
6457
uses: google-github-actions/release-please-action@e0b9d1885d92e9a93d5ce8656de60e3b806e542c # ratchet:google-github-actions/release-please-action@v3
6558
with:
6659
default-branch: ${{ steps.branch.outputs.name }}
6760
release-type: terraform-module
6861
token: ${{ steps.token.outputs.token }}
69-
7062
assets:
7163
name: upload assets
7264
if: ${{ needs.release.outputs.releases_created }}
@@ -78,15 +70,12 @@ jobs:
7870
permissions:
7971
contents: write
8072
actions: read
81-
8273
steps:
83-
- uses: actions/checkout@v3
84-
- uses: actions/download-artifact@v3
74+
- uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # ratchet:actions/checkout@v3
75+
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # ratchet:actions/download-artifact@v3
8576
with:
8677
name: ${{ matrix.asset }}
87-
8878
- name: Upload Release Asset
8979
env:
9080
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91-
run:
92-
gh release upload ${{ needs.release.outputs.tag_name }} ${{ matrix.asset }}.zip
81+
run: gh release upload ${{ needs.release.outputs.tag_name }} ${{ matrix.asset }}.zip

Diff for: .github/workflows/semantic-check.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
name: "Semantic Check"
2-
32
on:
43
pull_request_target:
54
types:
65
- opened
76
- edited
87
- synchronize
9-
108
permissions:
119
contents: read
1210
pull-requests: read
13-
1411
jobs:
1512
main:
1613
name: Semantic Commit Message Check
1714
runs-on: ubuntu-latest
1815
steps:
19-
- uses: actions/checkout@v3
20-
21-
- uses: amannn/action-semantic-pull-request@v5
16+
- uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # ratchet:actions/checkout@v3
17+
- uses: amannn/action-semantic-pull-request@c3cd5d1ea3580753008872425915e343e351ab54 # ratchet:amannn/action-semantic-pull-request@v5
2218
name: Check PR for Semantic Commit Message
2319
env:
2420
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: .github/workflows/stale.yml

+5-9
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,21 @@ on:
33
schedule:
44
- cron: "30 1 * * *"
55
workflow_dispatch:
6-
76
permissions:
87
issues: write
98
pull-requests: write
10-
119
jobs:
1210
stale:
1311
runs-on: ubuntu-latest
1412
steps:
15-
- uses: actions/stale@v7
13+
- uses: actions/stale@6f05e4244c9a0b2ed3401882b05d701dd0a7289b # ratchet:actions/stale@v7
1614
with:
1715
stale-issue-message: >
18-
This issue has been automatically marked as stale because it has not had
19-
activity in the last 30 days. It will be closed if no further activity occurs.
20-
Thank you for your contributions.
16+
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions.
17+
2118
stale-pr-message: >
22-
This pull request has been automatically marked as stale because it has not had
23-
activity in the last 30 days. It will be closed if no further activity occurs. Thank you
24-
for your contributions.
19+
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions.
20+
2521
days-before-stale: 30
2622
days-before-close: 10
2723
close-issue-label: "abandoned"

Diff for: .github/workflows/update-docs.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Update docs
2+
on:
3+
push:
4+
branches:
5+
- release-please--branches--main
6+
permissions: read-all
7+
jobs:
8+
docs:
9+
# update docs after merge back to develop
10+
name: Auto update terraform docs
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- name: Checkout branch
16+
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # ratchet:actions/checkout@v3
17+
- name: Generate TF docs
18+
uses: terraform-docs/gh-actions@f6d59f89a280fa0a3febf55ef68f146784b20ba0 # ratchet:terraform-docs/[email protected]
19+
with:
20+
find-dir: .
21+
git-commit-message: "docs: auto update terraform docs"
22+
git-push: true

0 commit comments

Comments
 (0)