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

Commit 9761167

Browse files
authored
chore: lock and update dependencies, clean-up (#4095)
- update and lock workflows - remove dependabot auto approve, due to bad practice
1 parent 6ed654f commit 9761167

8 files changed

+26
-53
lines changed

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

-17
This file was deleted.

Diff for: .github/workflows/lambda.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
working-directory: ./lambdas
2020

2121
steps:
22-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3.2.0
22+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2323
- name: Install dependencies
2424
run: yarn install --frozen-lockfile
2525
- name: Run prettier
@@ -32,7 +32,7 @@ jobs:
3232
- name: Build distribution
3333
run: yarn build
3434
- name: Upload coverage report
35-
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v31.2
35+
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
3636
if: ${{ failure() }}
3737
with:
3838
name: coverage-reports

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Verify packer
1717
runs-on: ubuntu-latest
1818
container:
19-
image: index.docker.io/hashicorp/packer@sha256:297bbbbbbf3ce9e0431ac1e8f02934b20e1197613f877b55dfdb1ebfd94eb748 # ratchet:index.docker.io/hashicorp/packer:1.8.6
19+
image: index.docker.io/hashicorp/packer@sha256:12c441b8a3994e7df9f0e2692d9298f14c387e70bcc06139420977dbf80a137b # 1.11.2
2020
strategy:
2121
matrix:
2222
image: ["linux-al2023", "windows-core-2019", "windows-core-2022", "ubuntu-focal", "ubuntu-jammy", "ubuntu-jammy-arm64"]
@@ -25,7 +25,7 @@ jobs:
2525
working-directory: images/${{ matrix.image }}
2626
steps:
2727
- name: "Checkout"
28-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
28+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2929
- name: packer init
3030
run: packer init .
3131
- name: check packer formatting

Diff for: .github/workflows/release.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,25 @@ jobs:
1717
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
1818
with:
1919
node-version: 20
20-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
20+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2121
- name: Build dist
2222
working-directory: lambdas
2323
run: yarn install --frozen-lockfile && yarn run test && yarn dist
2424
- name: Get installation token
25-
uses: philips-software/app-token-action@9f5d57062c9f2beaffafaa9a34f66f824ead63a9 # ratchet:philips-software/[email protected]
25+
uses: actions/create-github-app-token@31c86eb3b33c9b601a1f60f98dcbfd1d70f379b4 # v1.10.3
2626
id: token
2727
with:
28-
app_id: ${{ secrets.FOREST_RELEASER_APP_ID }}
29-
app_base64_private_key: ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY_BASE64 }}
30-
auth_type: installation
28+
app-id: ${{ secrets.FOREST_RELEASER_APP_ID }}
29+
private-key: ${{ secrets.FOREST_RELEASER_APP_PRIVATE_KEY }}
3130
- name: Extract branch name
3231
id: branch
3332
shell: bash
3433
run: echo "name=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
3534
- name: Release
3635
id: release
37-
uses: google-github-actions/release-please-action@e4dc86ba9405554aeba3c6bb2d169500e7d3b4ee # ratchet:google-github-actions/release-please-action@v3
36+
uses: google-github-actions/release-please-action@e4dc86ba9405554aeba3c6bb2d169500e7d3b4ee # v4.1.1
3837
with:
39-
default-branch: ${{ steps.branch.outputs.name }}
38+
target-branch: ${{ steps.branch.outputs.name }}
4039
release-type: terraform-module
4140
token: ${{ steps.token.outputs.token }}
4241
- name: Upload Release Asset

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
name: Semantic Commit Message Check
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
17-
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # ratchet:amannn/action-semantic-pull-request@v5
16+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
17+
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3
1818
name: Check PR for Semantic Commit Message
1919
env:
2020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: .github/workflows/stale.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
stale:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # ratchet:actions/stale@v7
13+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
1414
with:
1515
stale-issue-message: >
1616
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.

Diff for: .github/workflows/terraform.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
image: hashicorp/terraform:${{ matrix.terraform }}
2424
steps:
2525
- name: "Checkout"
26-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
26+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2727
- name: "Fake zip files" # Validate will fail if it cannot find the zip files
2828
run: |
2929
touch lambdas/functions/webhook/webhook.zip
@@ -89,7 +89,7 @@ jobs:
8989
container:
9090
image: hashicorp/terraform:${{ matrix.terraform }}
9191
steps:
92-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
92+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
9393
- name: terraform init
9494
run: terraform init -get -backend=false -input=false
9595
- if: contains(matrix.terraform, '1.3.')
@@ -147,7 +147,7 @@ jobs:
147147
container:
148148
image: hashicorp/terraform:${{ matrix.terraform }}
149149
steps:
150-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
150+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
151151
- name: terraform init
152152
run: terraform init -get -backend=false -input=false
153153
- if: contains(matrix.terraform, '1.5.')

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

+10-19
Original file line numberDiff line numberDiff line change
@@ -12,37 +12,28 @@ permissions:
1212

1313
jobs:
1414
docs:
15-
# update docs after merge back to develop
1615
name: Auto update terraform docs
1716
runs-on: ubuntu-latest
1817
steps:
19-
- uses: philips-software/app-token-action@9f5d57062c9f2beaffafaa9a34f66f824ead63a9 # v2.0.0
20-
id: app
21-
with:
22-
app_id: ${{ vars.FOREST_PR_BOT_APP_ID }}
23-
app_base64_private_key: ${{ secrets.FOREST_PR_BOT_APP_KEY_BASE64 }}
24-
auth_type: installation
25-
org: philips-labs
26-
2718
- name: Checkout with GITHUB Action token
28-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
19+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2920
with:
30-
token: ${{ steps.app.outputs.token }}
21+
token: ${{ secrets.GITHUB_TOKEN }}
3122

3223
# use an app to ensure CI is triggered
3324
- name: Generate TF docs
3425
if: github.repository_owner == 'philips-labs'
35-
uses: terraform-docs/gh-actions@e47bfa196e79fa50987ef391be236d9d97b0c786 # ratchet:terraform-docs/gh-actions@v1.2.0
26+
uses: terraform-docs/gh-actions@e47bfa196e79fa50987ef391be236d9d97b0c786 # v1.2.0
3627
with:
3728
find-dir: .
3829
git-commit-message: "docs: auto update terraform docs"
3930
git-push: ${{ github.ref != 'refs/heads/main' || github.repository_owner != 'philips-labs' }}
40-
git-push-user-name: forest-pr|bot
41-
git-push-user-email: "forest-pr[bot]@users.noreply.github.com"
31+
git-push-user-name: philips-labs-pr|bot
32+
git-push-user-email: "philips-labs-pr[bot]@users.noreply.github.com"
4233

4334
- name: Generate TF docs (forks)
4435
if: github.repository_owner != 'philips-labs'
45-
uses: terraform-docs/gh-actions@e47bfa196e79fa50987ef391be236d9d97b0c786 # ratchet:terraform-docs/gh-actions@v1.2.0
36+
uses: terraform-docs/gh-actions@e47bfa196e79fa50987ef391be236d9d97b0c786 # v1.2.0
4637
with:
4738
find-dir: .
4839
git-commit-message: "docs: auto update terraform docs"
@@ -51,7 +42,7 @@ jobs:
5142
# change docs via PR in case of locked main branch
5243
- name: Create Pull Request (main branch only)
5344
if: github.ref == 'refs/heads/main' && github.repository_owner == 'philips-labs'
54-
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # ratchet:peter-evans/create-pull-request@v6.1.0
45+
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
5546
with:
5647
token: ${{ secrets.GITHUB_TOKEN }}
5748
commit-message: "docs: auto update terraform docs"
@@ -65,16 +56,16 @@ jobs:
6556
needs: [docs]
6657
runs-on: ubuntu-latest
6758
steps:
68-
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v4
59+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
6960
- name: Configure Git Credentials
7061
run: |
7162
git config user.name github-actions[bot]
7263
git config --global user.email "github-actions[bot]@users.noreply.github.com"
73-
- uses: actions/setup-python@v5
64+
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
7465
with:
7566
python-version: 3.x
7667
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
77-
- uses: actions/cache@v4
68+
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
7869
with:
7970
key: mkdocs-material-${{ env.cache_id }}
8071
path: .cache

0 commit comments

Comments
 (0)