-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: pin all GitHub Actions by SHA and update via dependabot (#1658)
* Add dependabot for github actions * Pin actions by hash
- Loading branch information
Showing
6 changed files
with
56 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
groups: | ||
gh-actions-packages: | ||
patterns: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,20 +15,20 @@ jobs: | |
contents: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | ||
with: | ||
fetch-depth: 0 | ||
- name: gcc install | ||
run: sudo apt-get update; sudo apt install gcc-aarch64-linux-gnu | ||
- name: Get tag | ||
uses: little-core-labs/[email protected] | ||
uses: little-core-labs/get-git-tag@2c292ff564c1a61b989e29f0410d131317f89b03 # v3.0.2 | ||
id: tag | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v3 | ||
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.2.0 | ||
with: | ||
version: 2.4.1 | ||
args: build --skip=validate --config .goreleaser-for-linux.yaml | ||
|
@@ -38,18 +38,18 @@ jobs: | |
# https://github.com/marketplace/actions/goreleaser-action | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get tag | ||
uses: little-core-labs/[email protected] | ||
uses: little-core-labs/get-git-tag@2c292ff564c1a61b989e29f0410d131317f89b03 # v3.0.2 | ||
id: tag | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: Build | ||
uses: goreleaser/goreleaser-action@v3 | ||
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.2.0 | ||
with: | ||
args: build --skip=validate --config .goreleaser-for-darwin.yaml | ||
build-windows-binary: | ||
|
@@ -58,17 +58,17 @@ jobs: | |
# https://github.com/marketplace/actions/goreleaser-action | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get tag | ||
uses: little-core-labs/[email protected] | ||
uses: little-core-labs/get-git-tag@2c292ff564c1a61b989e29f0410d131317f89b03 # v3.0.2 | ||
id: tag | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: Build | ||
uses: goreleaser/goreleaser-action@v3 | ||
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.2.0 | ||
with: | ||
args: build --skip=validate --config .goreleaser-for-windows.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,9 @@ jobs: | |
pull-requests: read | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v1 | ||
uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1.2.0 | ||
- name: Verify Pull Request Labels | ||
uses: jesusvasquez333/[email protected] | ||
uses: jesusvasquez333/verify-pr-label-action@657d111bbbe13e22bbd55870f1813c699bde1401 # v1.4.0 | ||
with: | ||
github-token: '${{ secrets.GITHUB_TOKEN }}' | ||
valid-labels: 'bug, enhancement, refactoring, documentation, tooling, dependencies' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,28 +23,28 @@ jobs: | |
actions: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | ||
with: | ||
fetch-depth: 0 | ||
- name: gcc install | ||
run: sudo apt-get update; sudo apt install gcc-aarch64-linux-gnu | ||
- name: Get tag | ||
uses: little-core-labs/[email protected] | ||
uses: little-core-labs/get-git-tag@2c292ff564c1a61b989e29f0410d131317f89b03 # v3.0.2 | ||
id: tag | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: Get Latest Release | ||
id: latest_version | ||
uses: pozetroninc/github-action-get-latest-release@master | ||
uses: pozetroninc/github-action-get-latest-release@53d33d213ee71c72360e3c829caf7cee94ec21e2 # master | ||
with: | ||
owner: ${{ github.repository_owner }} | ||
repo: datadog-operator | ||
excludes: prerelease, draft | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v3 | ||
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.2.0 | ||
with: | ||
version: 2.4.1 | ||
args: release --skip=publish --config .goreleaser-for-linux.yaml | ||
|
@@ -67,26 +67,26 @@ jobs: | |
# actions/upload-artifact | ||
actions: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get tag | ||
uses: little-core-labs/[email protected] | ||
uses: little-core-labs/get-git-tag@2c292ff564c1a61b989e29f0410d131317f89b03 # v3.0.2 | ||
id: tag | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: Get Latest Release | ||
id: latest_version | ||
uses: pozetroninc/github-action-get-latest-release@master | ||
uses: pozetroninc/github-action-get-latest-release@53d33d213ee71c72360e3c829caf7cee94ec21e2 # master | ||
with: | ||
owner: ${{ github.repository_owner }} | ||
repo: datadog-operator | ||
excludes: prerelease, draft | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build | ||
uses: goreleaser/goreleaser-action@v3 | ||
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.2.0 | ||
with: | ||
args: release --skip=publish --config .goreleaser-for-darwin.yaml | ||
env: | ||
|
@@ -107,26 +107,26 @@ jobs: | |
# actions/upload-artifact | ||
actions: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get tag | ||
uses: little-core-labs/[email protected] | ||
uses: little-core-labs/get-git-tag@2c292ff564c1a61b989e29f0410d131317f89b03 # v3.0.2 | ||
id: tag | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: Get Latest Release | ||
id: latest_version | ||
uses: pozetroninc/github-action-get-latest-release@master | ||
uses: pozetroninc/github-action-get-latest-release@53d33d213ee71c72360e3c829caf7cee94ec21e2 # master | ||
with: | ||
owner: ${{ github.repository_owner }} | ||
repo: datadog-operator | ||
excludes: prerelease, draft | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build | ||
uses: goreleaser/goreleaser-action@v3 | ||
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757 # v3.2.0 | ||
with: | ||
args: release --skip=publish --config .goreleaser-for-windows.yaml | ||
env: | ||
|
@@ -152,7 +152,7 @@ jobs: | |
pull-requests: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | ||
with: | ||
fetch-depth: 0 | ||
- name: Make directories | ||
|
@@ -176,7 +176,7 @@ jobs: | |
name: kubectl-datadog-windows | ||
path: ./tmp-build/windows | ||
- name: Get tag | ||
uses: little-core-labs/[email protected] | ||
uses: little-core-labs/get-git-tag@2c292ff564c1a61b989e29f0410d131317f89b03 # v3.0.2 | ||
id: tag | ||
- name: Prepare ./dist folder | ||
run: | | ||
|
@@ -191,7 +191,7 @@ jobs: | |
- name: Generate Plugin manifest | ||
run: ./hack/release/generate-plugin-manifest.sh ${{steps.tag.outputs.tag}} | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1.0.0 | ||
with: | ||
body_path: dist/CHANGELOG.md | ||
prerelease: ${{ contains(github.ref, '-rc.') }} | ||
|
@@ -204,7 +204,7 @@ jobs: | |
COMMIT_TAG: ${{steps.tag.outputs.tag}} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Update new plugin version in krew-index | ||
uses: rajatjindal/[email protected] | ||
uses: rajatjindal/krew-release-bot@92da038bbf995803124a8e50ebd438b2f37bbbb0 # v0.0.43 | ||
continue-on-error: true | ||
with: | ||
krew_template_file: dist/datadog-plugin.yaml |