Skip to content

Commit

Permalink
Update heimdall metadata (#45)
Browse files Browse the repository at this point in the history
Update the project metadata to resolve a number of Heimdall checks:

  - Defining a META.d
  - Updating go (1.20)
  - Default CODEOWNERS
  - Branch protection rules (`main` and `release/*` where applicable)

Unrelated clean-up:

  - CI & Heimdall badges
  - update tsccr pins
  - ignore .idea
  - add dependabot

Related RELENG-639
  • Loading branch information
dekimsey committed Jun 20, 2023
1 parent 90ea6bd commit 80a0453
Show file tree
Hide file tree
Showing 14 changed files with 52 additions and 67 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @hashicorp/release-engineering
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2

updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: gomod
directory:
schedule:
interval: weekly
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
# We override the default product name so that this test build
# of the CLI doesn't take the place of the cli built by the action.
product_name: actions-go-build-test-build
go_version: 1.18
go_version: '1.20'
os: ${{ matrix.os }}
arch: ${{ matrix.arch }}
instructions: go build -o $BIN_PATH -trimpath -buildvcs=false
2 changes: 1 addition & 1 deletion .github/workflows/example-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
product_name: example-app
product_version: 1.2.3
go_version: 1.18
go_version: 1.20
os: ${{ matrix.os }}
arch: ${{ matrix.arch }}
instructions: |-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- name: Build
uses: hashicorp/actions-go-build@main
with:
go_version: 1.18
go_version: 1.20
os: linux
arch: amd64
work_dir: testdata/example-app
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: github/super-linter@v4
- uses: github/super-linter@45fc0d88288beee4701c62761281edfee85655d7 # v5.0.0

go-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: 1.18
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
go-version-file: go.mod
- run: make test/go
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist/
out/
meta/
actions-go-build
.idea/
3 changes: 3 additions & 0 deletions META.d/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Reliability Data Platform Information

These documents are meant to feed [heimdall](https://heimdall.hashicorp.services/site/), the Reliability Data Platform. A detailed breakdown of the schema can be found [here](https://github.com/hashicorp/core-sre-heimdall-core/blob/main/docs/SCHEMA.md).
11 changes: 11 additions & 0 deletions META.d/_summary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
schema: 1.1

partition: internal-platform
category: github-action

summary:
name: actions-go-build
owner: team-rel-eng
description: Go build action, with built-in reproduciblity verification as part of Common Release Tooling (CRT).
visibility: external
auth_methods: none
7 changes: 7 additions & 0 deletions META.d/links.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
runbooks: []
# - name: runbook name
# link: link to runbook

other_links:
- name: Reproducible Builds RFC
link: hhttps://go.hashi.co/rfc/engsrv-084
4 changes: 4 additions & 0 deletions META.d/tags.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tags:
family: github-actions
type: github-action
crt-compatible: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Go Build Action
# Go Build Action [![Heimdall](https://heimdall.hashicorp.services/api/v1/assets/actions-go-build/badge.svg?key=5c34743984c6ac17fabc3e68b7f6d34620de4e877ab1c529405ed7f4843147bf)](https://heimdall.hashicorp.services/site/assets/actions-go-build) [![CI](https://github.com/hashicorp/actions-go-build/actions/workflows/test.yml/badge.svg)](https://github.com/hashicorp/actions-go-build/actions/workflows/test.yml)

_**Build and package a (reproducible) Go binary.**_

Expand Down
4 changes: 1 addition & 3 deletions go.mod

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

63 changes: 6 additions & 57 deletions go.sum

Large diffs are not rendered by default.

0 comments on commit 80a0453

Please sign in to comment.