@@ -12,37 +12,28 @@ permissions:
1212
1313jobs :
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"
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