Skip to content

Commit 59046c4

Browse files
authored
[action] update to common dependabot workflow | use SHAs for action versions (#1201)
1 parent 3aef425 commit 59046c4

File tree

2 files changed

+13
-24
lines changed

2 files changed

+13
-24
lines changed

.github/workflows/dependabot-auto-merge.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,6 @@ permissions:
66
pull-requests: write
77

88
jobs:
9-
dependabot:
10-
runs-on: ubuntu-latest
11-
if: ${{ github.actor == 'dependabot[bot]' }}
12-
steps:
13-
- name: Dependabot metadata
14-
id: metadata
15-
uses: dependabot/[email protected]
16-
with:
17-
github-token: "${{ secrets.GITHUB_TOKEN }}"
18-
- name: Enable auto-merge for Dependabot PRs
19-
run: gh pr merge --auto --merge "$PR_URL"
20-
env:
21-
PR_URL: ${{github.event.pull_request.html_url}}
22-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
9+
dependabot-auto-merge:
10+
uses: smallstep/workflows/.github/workflows/dependabot-auto-merge.yml@main
11+
secrets: inherit

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ jobs:
5353
echo "DOCKER_TAGS_DEBIAN=${{ env.DOCKER_TAGS_DEBIAN }},${{ env.DOCKER_IMAGE }}:${DEBIAN_TAG}" >> "${GITHUB_ENV}"
5454
- name: Create Release
5555
id: create_release
56-
uses: actions/create-release@v1
56+
uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87 # v2.0.5
5757
env:
5858
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5959
with:
6060
tag_name: ${{ github.ref }}
61-
release_name: Release ${{ github.ref }}
61+
name: Release ${{ github.ref }}
6262
draft: false
6363
prerelease: ${{ steps.is_prerelease.outputs.IS_PRERELEASE }}
6464

@@ -107,9 +107,9 @@ jobs:
107107
if: needs.create_release.outputs.is_prerelease == 'false'
108108
steps:
109109
- name: Checkout
110-
uses: actions/checkout@v4
110+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
111111
- name: Setup Go
112-
uses: actions/setup-go@v5
112+
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
113113
with:
114114
go-version: 'stable'
115115
check-latest: true
@@ -129,7 +129,7 @@ jobs:
129129
cp ./output/binary/windows-amd64/bin/step ./.releases/step_latest_windows.exe
130130
- name: Upload s3
131131
id: upload-s3
132-
uses: jakejarvis/[email protected]
132+
uses: jakejarvis/s3-sync-action@be0c4ab89158cac4278689ebedd8407dd5f35a83 # v0.5.1
133133
with:
134134
args: --acl public-read --follow-symlinks
135135
env:
@@ -146,23 +146,23 @@ jobs:
146146
if: needs.create_release.outputs.is_prerelease == 'false'
147147
steps:
148148
- name: Checkout
149-
uses: actions/checkout@v4
149+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
150150
- name: Setup Go
151-
uses: actions/setup-go@v5
151+
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
152152
with:
153153
go-version: 'stable'
154154
check-latest: true
155155
- name: Build
156156
id: build
157157
run: V=1 make build
158158
- name: Checkout Docs
159-
uses: actions/checkout@v4
159+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
160160
with:
161161
repository: smallstep/docs
162162
token: ${{ secrets.DOCS_PAT }}
163163
path: './docs'
164164
- name: Setup bot SSH signing key
165-
uses: webfactory/[email protected]
165+
uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0
166166
env:
167167
HAS_SSH_PRIVATE_KEY: ${{ secrets.STEP_TRAVIS_CI_GH_PRIVATE_SIGNING_KEY != '' }}
168168
if: ${{ env.HAS_SSH_PRIVATE_KEY == 'true' }}
@@ -207,7 +207,7 @@ jobs:
207207
208208
git add . && git commit -a -m "step-cli ${{ needs.create_release.outputs.vversion }} reference update"
209209
- name: Push changes
210-
uses: ad-m/[email protected]
210+
uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df # v0.8.0
211211
with:
212212
github_token: ${{ secrets.DOCS_PAT }}
213213
branch: 'main'

0 commit comments

Comments
 (0)