Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 41 additions & 41 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
needs.paths-filter.outputs.codechange == 'true'
steps:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
- uses: "docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1" # v3.5.0
with:
username: "${{ env.DOCKERHUB_PUBLIC_USER }}"
Expand All @@ -70,7 +70,7 @@ jobs:
needs.paths-filter.outputs.codechange == 'true'
steps:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
- name: "Unit tests with coverage"
run: "go run mage.go test:unitCover"
- name: "Coverage"
Expand All @@ -88,7 +88,7 @@ jobs:
needs.paths-filter.outputs.codechange == 'true'
steps:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
- name: "Steelthread tests"
run: "go run mage.go test:steelthread"

Expand All @@ -100,7 +100,7 @@ jobs:
needs.paths-filter.outputs.codechange == 'true'
steps:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
- uses: "docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1" # v3.5.0
with:
username: "${{ env.DOCKERHUB_PUBLIC_USER }}"
Expand All @@ -126,7 +126,7 @@ jobs:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
if: |
needs.paths-filter.outputs.codechange == 'true'
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
if: |
needs.paths-filter.outputs.codechange == 'true'
- uses: "docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1" # v3.5.0
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
if: |
needs.paths-filter.outputs.codechange == 'true'
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
if: |
needs.paths-filter.outputs.codechange == 'true'
- uses: "docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1" # v3.5.0
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
if: |
needs.paths-filter.outputs.codechange == 'true'
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
if: |
needs.paths-filter.outputs.codechange == 'true'
- uses: "docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1" # v3.5.0
Expand Down Expand Up @@ -230,7 +230,7 @@ jobs:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
if: |
needs.paths-filter.outputs.codechange == 'true'
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
if: |
needs.paths-filter.outputs.codechange == 'true'
- uses: "docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1" # v3.5.0
Expand Down Expand Up @@ -265,7 +265,7 @@ jobs:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
if: |
needs.paths-filter.outputs.codechange == 'true'
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
if: |
needs.paths-filter.outputs.codechange == 'true'
- uses: "docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1" # v3.5.0
Expand Down Expand Up @@ -300,7 +300,7 @@ jobs:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
if: |
needs.paths-filter.outputs.codechange == 'true'
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
if: |
needs.paths-filter.outputs.codechange == 'true'
- uses: "docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1" # v3.5.0
Expand Down Expand Up @@ -330,7 +330,7 @@ jobs:
needs.paths-filter.outputs.codechange == 'true'
steps:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
with:
go-version-file: "e2e/go.mod"
cache-dependency-path: "e2e/go.sum"
Expand Down Expand Up @@ -362,48 +362,48 @@ jobs:
if: |
needs.paths-filter.outputs.codechange == 'true'
steps:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4.2.2
- uses: "authzed/actions/setup-go@main"
with:
go-version-file: "tools/analyzers/go.mod"
cache-dependency-path: "tools/analyzers/go.sum"
- name: "Analyzer tests"
run: "go run mage.go test:analyzers"
development:
name: "WASM Tests"
runs-on: "depot-ubuntu-24.04-4"
needs: "paths-filter"
if: |
needs.paths-filter.outputs.codechange == 'true'
steps:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- name: "Disable AppArmor"
if:
"runner.os == 'Linux'"
# Disable AppArmor for Ubuntu 23.10+.
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
run: "echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns"
# cleanenv is a util provided by the wasmbrowsertest package that removes
# environment variables from the environment handed to wasmbrowsertest.
# this works around https://github.com/agnivade/wasmbrowsertest/issues/40,
# which we were experiencing on depot.
- name: "Install cleanenv"
run: "go install github.com/agnivade/wasmbrowsertest/cmd/cleanenv@latest"
- name: "WASM tests"
# There's a whole bunch of vars in the environment that aren't needed for running this test, so we clear them out.
# NOTE: if you need to do this in the future, I recommend bashing into the container and running `env | sort | less`
run: "cleanenv -remove-prefix GITHUB_ -remove-prefix ANDROID_ -remove-prefix JAVA_ -remove-prefix DOTNET_ -remove-prefix RUNNER_ -remove-prefix HOMEBREW_ -remove-prefix runner_ -- go run mage.go test:wasm"
development:
name: "WASM Tests"
runs-on: "depot-ubuntu-24.04-4"
needs: "paths-filter"
if: |
needs.paths-filter.outputs.codechange == 'true'
steps:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
- uses: "authzed/actions/setup-go@main"
- name: "Disable AppArmor"
if:
"runner.os == 'Linux'"
# Disable AppArmor for Ubuntu 23.10+.
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
run: "echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns"
# cleanenv is a util provided by the wasmbrowsertest package that removes
# environment variables from the environment handed to wasmbrowsertest.
# this works around https://github.com/agnivade/wasmbrowsertest/issues/40,
# which we were experiencing on depot.
- name: "Install cleanenv"
run: "go install github.com/agnivade/wasmbrowsertest/cmd/cleanenv@latest"
- name: "WASM tests"
# There's a whole bunch of vars in the environment that aren't needed for running this test, so we clear them out.
# NOTE: if you need to do this in the future, I recommend bashing into the container and running `env | sort | less`
run: "cleanenv -remove-prefix GITHUB_ -remove-prefix ANDROID_ -remove-prefix JAVA_ -remove-prefix DOTNET_ -remove-prefix RUNNER_ -remove-prefix HOMEBREW_ -remove-prefix runner_ -- go run mage.go test:wasm"

protobuf:
protobuf:
name: "Generate Protobufs"
runs-on: "depot-ubuntu-24.04-small"
needs: "paths-filter"
if: |
needs.paths-filter.outputs.protochange == 'true'
steps:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4.2.2
- uses: "authzed/actions/setup-go@main"
- name: "Generate Protos"
run: "go run mage.go gen:proto"
- uses: "chainguard-dev/actions/nodiff@3caedd3784c809ba873cbb8c6a12e2bc6bf6ab09" # main
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: "depot-ubuntu-24.04-small"
steps:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
- name: "Check Licenses"
uses: "authzed/actions/go-license-check@11667c9b2e8b3649ad2af4d788e57d18f8e8eaf1" # main
with:
Expand All @@ -29,7 +29,7 @@ jobs:
runs-on: "depot-ubuntu-24.04-4"
steps:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
- name: "Lint Go"
run: "go run mage.go lint:go"
- uses: "chainguard-dev/actions/nodiff@3caedd3784c809ba873cbb8c6a12e2bc6bf6ab09" # main
Expand All @@ -42,7 +42,7 @@ jobs:
runs-on: "depot-ubuntu-24.04-small"
steps:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
- name: "Lint Everything Else"
run: "go run mage.go lint:extra"
- uses: "chainguard-dev/actions/nodiff@3caedd3784c809ba873cbb8c6a12e2bc6bf6ab09" # main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
with:
fetch-depth: 0
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
- name: "Install snapcraft"
run: |
sudo snap install snapcraft --channel=8.x/stable --classic
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
with:
fetch-depth: 0
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
- uses: "nowsprinting/check-version-format-action@c7180d5aa53d69af70c364c047482fc71e133f55" # v4.0.6
id: "version"
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
with:
fetch-depth: 0
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
- uses: "nowsprinting/check-version-format-action@c7180d5aa53d69af70c364c047482fc71e133f55" # v4.0.6
id: "version"
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

steps:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
- uses: "authzed/actions/codeql@11667c9b2e8b3649ad2af4d788e57d18f8e8eaf1" # main"

trivy:
Expand All @@ -52,7 +52,7 @@ jobs:
# this is used so goreleaser generates the right version out of the tags, which we need so that
# trivy does not flag an old SpiceDB version
fetch-depth: 0
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
- uses: "docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1" # v3.5.0
with:
username: "${{ env.DOCKERHUB_PUBLIC_USER }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wasm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: "actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493" # v4.2.2
with:
ref: "${{ env.GITHUB_SHA }}"
- uses: "authzed/actions/setup-go@6cde6aeb82fab36d8383c2f55bed8128955af34d" # main
- uses: "authzed/actions/setup-go@main"
- name: "Build WASM"
run: "go run mage.go build:wasm"
- uses: "shogo82148/actions-upload-release-asset@e6cd4579c50a5d0eb50ca05d0d597daafca8cebb" # v1.9.0
Expand Down
Loading