-
Notifications
You must be signed in to change notification settings - Fork 24
chore(ci): use yaml anchors in checks job for common reused actions #2900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,7 @@ | |
|
|
||
| jobs: | ||
| go: | ||
| runs-on: ubuntu-22.04 | ||
| runs-on: &ubuntu-runner ubuntu-22.04 | ||
| permissions: | ||
| checks: write | ||
| contents: read | ||
|
|
@@ -41,11 +41,11 @@ | |
| - lib/identifier | ||
| - tests-bdd | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| - uses: &actions-checkout actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| with: | ||
| fetch-depth: 0 | ||
| persist-credentials: false | ||
| - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||
| - uses: &actions-setup-go actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||
Check failureCode scanning / zizmor runtime artifacts potentially vulnerable to a cache poisoning attack Error
runtime artifacts potentially vulnerable to a cache poisoning attack
Check failureCode scanning / zizmor runtime artifacts potentially vulnerable to a cache poisoning attack Error
runtime artifacts potentially vulnerable to a cache poisoning attack
Check failureCode scanning / zizmor runtime artifacts potentially vulnerable to a cache poisoning attack Error
runtime artifacts potentially vulnerable to a cache poisoning attack
|
||
| with: | ||
| go-version-file: ${{ matrix.directory }}/go.mod | ||
| check-latest: false | ||
|
|
@@ -103,14 +103,14 @@ | |
| permissions: | ||
| contents: read | ||
| name: integration tests | ||
| runs-on: ubuntu-22.04 | ||
| runs-on: *ubuntu-runner | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| env: | ||
| TLS_ENABLED: "true" | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| - uses: *actions-checkout | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||
| - uses: *actions-setup-go | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| with: | ||
| go-version-file: "service/go.mod" | ||
| check-latest: false | ||
|
|
@@ -182,14 +182,14 @@ | |
| name: benchmark tests | ||
| outputs: | ||
| markdown: ${{ steps.save-benchmark.outputs.BENCHMARK_MARKDOWN }} | ||
| runs-on: ubuntu-22.04 | ||
| runs-on: *ubuntu-runner | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| env: | ||
| TLS_ENABLED: "true" | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| - uses: *actions-checkout | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||
| - uses: *actions-setup-go | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| with: | ||
| go-version-file: "service/go.mod" | ||
| check-latest: false | ||
|
|
@@ -348,9 +348,9 @@ | |
| pull-requests: write | ||
| name: benchmark tests | ||
| needs: benchmark | ||
| runs-on: ubuntu-22.04 | ||
| runs-on: *ubuntu-runner | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| - uses: *actions-checkout | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| with: | ||
| persist-credentials: false | ||
|
|
||
|
|
@@ -374,9 +374,9 @@ | |
| permissions: | ||
| contents: read | ||
| name: image build | ||
| runs-on: ubuntu-22.04 | ||
| runs-on: *ubuntu-runner | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| - uses: *actions-checkout | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| with: | ||
| persist-credentials: false | ||
| - uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 | ||
|
|
@@ -402,7 +402,7 @@ | |
|
|
||
| tests-bdd: | ||
| name: Cucumber BDD Tests | ||
| runs-on: ubuntu-22.04 | ||
| runs-on: *ubuntu-runner | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| strategy: | ||
| fail-fast: false | ||
| permissions: | ||
|
|
@@ -420,10 +420,10 @@ | |
| sudo cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert | ||
| - name: "Checkout" | ||
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| uses: *actions-checkout | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||
| - uses: *actions-setup-go | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| with: | ||
| go-version-file: ./tests-bdd/go.mod | ||
| cache: false | ||
|
|
@@ -463,7 +463,7 @@ | |
| permissions: | ||
| contents: read | ||
| name: otdfctl e2e tests | ||
| runs-on: ubuntu-latest | ||
| runs-on: *ubuntu-runner | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| steps: | ||
| - name: Install GNU parallel | ||
| run: | | ||
|
|
@@ -483,9 +483,9 @@ | |
| permissions: | ||
| contents: read | ||
| name: Protocol Buffer Lint and Gencode Up-to-date check | ||
| runs-on: ubuntu-22.04 | ||
| runs-on: *ubuntu-runner | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| - uses: *actions-checkout | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| with: | ||
| persist-credentials: false | ||
| - uses: bufbuild/buf-setup-action@a47c93e0b1648d5651a065437926377d060baa99 # v1.50.0 | ||
|
|
@@ -499,7 +499,7 @@ | |
| with: | ||
| input: service | ||
| against: "https://github.com/opentdf/platform.git#branch=${{ github.event.pull_request.base.ref || github.base_ref || 'main' }},subdir=service" | ||
| - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||
| - uses: *actions-setup-go | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| with: | ||
| go-version-file: "service/go.mod" | ||
| check-latest: false | ||
|
|
@@ -541,7 +541,7 @@ | |
| - platform-xtest | ||
| - tests-bdd | ||
| - otdfctl-test | ||
| runs-on: ubuntu-22.04 | ||
| runs-on: *ubuntu-runner | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| if: ${{ !cancelled() }} | ||
| steps: | ||
| - if: contains(needs.*.result, 'failure') | ||
|
|
@@ -552,12 +552,12 @@ | |
| permissions: | ||
| contents: read | ||
| name: license check | ||
| runs-on: ubuntu-22.04 | ||
| runs-on: *ubuntu-runner | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| - uses: *actions-checkout | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚫 [actionlint] reported by reviewdog 🐶 |
||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||
| - uses: *actions-setup-go | ||
| with: | ||
| go-version-file: "service/go.mod" | ||
| check-latest: false | ||
|
|
||
Check failure
Code scanning / zizmor
runtime artifacts potentially vulnerable to a cache poisoning attack Error