Skip to content

Commit 7190cef

Browse files
committed
docs: pin GitHub Actions version commits
1 parent b19b0c8 commit 7190cef

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ jobs:
8484
docs:
8585
runs-on: ubuntu-latest
8686
steps:
87-
- uses: actions/checkout@v4
87+
- name: Checkout the repo
88+
# Verified creator: https://github.com/marketplace/actions/checkout
89+
# GitHub Action for checking out a repo
90+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8891
- name: Build documentation
8992
uses: elastic/docs-builder@main
9093
```
@@ -100,22 +103,31 @@ To setup the tool to publish to GitHub pages use the following configuration.
100103
steps:
101104
- id: repo-basename
102105
run: 'echo "value=`basename ${{ github.repository }}`" >> $GITHUB_OUTPUT'
103-
- uses: actions/checkout@v4
106+
- name: Checkout the repo
107+
# Verified creator: https://github.com/marketplace/actions/checkout
108+
# GitHub Action for checking out a repo
109+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
104110
- name: Setup Pages
105111
id: pages
106-
uses: actions/[email protected]
112+
# Verified creator: https://github.com/marketplace/actions/configure-github-pages
113+
# A GitHub Action to enable Pages and extract various metadata about a site.
114+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
107115
- name: Build documentation
108116
uses: elastic/docs-builder@main
109117
with:
110118
prefix: '${{ steps.repo-basename.outputs.value }}'
111119
- name: Upload artifact
112-
uses: actions/[email protected]
120+
# Verified creator: https://github.com/marketplace/actions/upload-github-pages-artifact
121+
# A composite action for packaging and uploading an artifact that can be deployed to GitHub Pages.
122+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
113123
with:
114124
path: .artifacts/docs/html
115125

116126
- name: Deploy artifact
117127
id: deployment
118-
uses: actions/[email protected]
128+
# Verified creator: https://github.com/marketplace/actions/deploy-github-pages-site
129+
# GitHub Action to publish artifacts to GitHub Pages for deployments
130+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
119131
```
120132
121133
Note `prefix:` is required to inject the appropiate `--path-prefix` argument to `docs-builder`

0 commit comments

Comments
 (0)