Skip to content

Commit

Permalink
Dependabot and TSCCR disjoint deps management (#56)
Browse files Browse the repository at this point in the history
* Dependabot and TSCCR disjoint deps management

Also adopt PRDE's best practices around frequency and update grouping.

* TSCCR update

* Use real super-linter action
  • Loading branch information
shore authored Aug 12, 2024
1 parent 95c2ffd commit e953e23
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 17 deletions.
15 changes: 14 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
---
version: 2

updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
interval: "monthly"
# Only update hashicorp-owned actions
# External actions managed via TSCCR
allow:
- dependency-name: "hashicorp/*"
groups:
github-actions-breaking:
update-types:
- major
github-actions-backward-compatible:
update-types:
- minor
- patch
- package-ecosystem: gomod
directory:
schedule:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
# Dogfood this Action to build its own CLI.
- uses: ./
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- { runner: ubuntu-latest, os: linux, arch: arm64, env: CGO_ENABLED=0 }
- { runner: ubuntu-latest, os: windows, arch: amd64, env: CGO_ENABLED=0 }
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Build
uses: hashicorp/actions-go-build@main
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example-matrix.yml.currentbranch.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Build
uses: hashicorp/actions-go-build@main
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example.yml.currentbranch.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Build CLI Binaries
run: make release/zips
- name: Create GitHub Release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/self-test-suite-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- { assert: failure, file: this-file-does-not-exist, when: result file is missing }
- { assert: failure, file: corrupt, when: result file is corrupt }
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
# generate a random ID; GH doesn't provide a proper job ID (especially for matrix jobs)
- name: Generate random ID to distinguish build artifacts
run: echo "ARTIFACT_ID=$RANDOM" >> "$GITHUB_ENV"
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/self-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- { reproducible: report, want: success }
- { reproducible: nope, want: success }
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: select OS value
run: case "${{ runner.os }}" in macOS) echo "SELECTED_OS=darwin" >> "$GITHUB_ENV" ;; Linux) echo "SELECTED_OS=linux" >> "$GITHUB_ENV" ;; esac
- uses: ./self-test
Expand All @@ -57,7 +57,7 @@ jobs:
- { reproducible: report, want: success }
- { reproducible: nope, want: success }
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: select OS value
run: case "${{ runner.os }}" in macOS) echo "SELECTED_OS=darwin" >> "$GITHUB_ENV" ;; Linux) echo "SELECTED_OS=linux" >> "$GITHUB_ENV" ;; esac
- uses: ./self-test
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
- { reproducible: report, os: darwin, arch: arm64, want: success }
- { reproducible: nope, os: darwin, arch: arm64, want: success }
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
if: runner.os == 'macOS'
- uses: ./self-test
if: runner.os == 'macOS'
Expand All @@ -117,7 +117,7 @@ jobs:
- { reproducible: report, want: success }
- { reproducible: nope, want: success }
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: select OS value
run: case "${{ runner.os }}" in macOS) echo "SELECTED_OS=darwin" >> "$GITHUB_ENV" ;; Linux) echo "SELECTED_OS=linux" >> "$GITHUB_ENV" ;; esac
- uses: ./self-test
Expand All @@ -144,7 +144,7 @@ jobs:
- { reproducible: report, want: success }
- { reproducible: nope, want: success }
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: select OS value
run: case "${{ runner.os }}" in macOS) echo "SELECTED_OS=darwin" >> "$GITHUB_ENV" ;; Linux) echo "SELECTED_OS=linux" >> "$GITHUB_ENV" ;; esac
- uses: ./self-test
Expand All @@ -170,7 +170,7 @@ jobs:
- { reproducible: report, want: failure }
- { reproducible: nope, want: failure }
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: select OS value
run: case "${{ runner.os }}" in macOS) echo "SELECTED_OS=darwin" >> "$GITHUB_ENV" ;; Linux) echo "SELECTED_OS=linux" >> "$GITHUB_ENV" ;; esac
- uses: ./self-test
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: github/super-linter@4e51915f4a812abf59fed160bb14595c0a38a9e7 # v6
- uses: super-linter/super-linter@b4515bd4ad9d0aa4681960e053916ab991bdbe96 # v6.8.0

go-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: go.mod
cache: false
Expand Down

0 comments on commit e953e23

Please sign in to comment.