Skip to content

Commit d7a5ca9

Browse files
authored
Merge pull request #39 from bitnami/chore/bump-gh-actions
Upgrade GH actions and configure dependabot
2 parents cadb88b + f3ca760 commit d7a5ca9

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright Broadcom, Inc. All Rights Reserved.
2+
# SPDX-License-Identifier: APACHE-2.0
3+
4+
version: 2
5+
# Check for updates to GitHub Actions every week
6+
updates:
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"

.github/workflows/main.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ on:
1414

1515
# Allows you to run this workflow manually from the Actions tab
1616
workflow_dispatch:
17-
17+
# Remove all permissions by default
18+
permissions: {}
1819
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1920
jobs:
2021
# This workflow contains a single job called "build"
@@ -24,8 +25,8 @@ jobs:
2425
# Steps represent a sequence of tasks that will be executed as part of the job
2526
steps:
2627
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
27-
- uses: actions/checkout@v2
28-
- uses: actions/setup-go@v2
28+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
29+
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed
2930
with:
3031
go-version: '^1.22.4' # The Go version to download (if necessary) and use.
3132
- name: Install Build Dependencies
@@ -48,7 +49,7 @@ jobs:
4849
file $target
4950
tar -C "$(dirname "$target")" -czf "$target.tar.gz" "$(basename "$target")"
5051
done
51-
- uses: actions/upload-artifact@v2
52+
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
5253
with:
5354
name: built-binaries
5455
path: |
@@ -58,8 +59,8 @@ jobs:
5859
if: startsWith(github.ref, 'refs/tags/')
5960
runs-on: ubuntu-20.04
6061
steps:
61-
- uses: actions/checkout@v2
62-
- uses: actions/download-artifact@v4.1.7
62+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
63+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
6364
with:
6465
path: ./artifacts
6566
- name: Set tag name

0 commit comments

Comments
 (0)