-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cgr-publish
- Loading branch information
Showing
2,201 changed files
with
201,814 additions
and
52,096 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,7 @@ | ||
# shellcheck shell=bash | ||
# This is an example of a .envrc file for use with direnv | ||
# | ||
# See https://direnv.net/#getting-started for more information on how to get | ||
# started with direnv | ||
export GOMAXPROCS=6 | ||
export KO_DOCKER_REPO=gcr.io/tektoncd/pipeline |
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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# This workflow uses actions that are not certified by GitHub. They are provided | ||
# by a third-party and are governed by separate terms of service, privacy | ||
# policy, and support documentation. | ||
|
||
name: Scorecard supply-chain security | ||
on: | ||
# For Branch-Protection check. Only the default branch is supported. See | ||
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection | ||
branch_protection_rule: | ||
# To guarantee Maintained check is occasionally updated. See | ||
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained | ||
schedule: | ||
- cron: '23 0 * * 4' | ||
push: | ||
branches: [ "main" ] | ||
|
||
# Declare default permissions as read only. | ||
permissions: read-all | ||
|
||
jobs: | ||
analysis: | ||
name: Scorecard analysis | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# Needed to upload the results to code-scanning dashboard. | ||
security-events: write | ||
# Needed to publish results and get a badge (see publish_results below). | ||
id-token: write | ||
|
||
steps: | ||
- name: "Checkout code" | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: "Run analysis" | ||
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1 | ||
with: | ||
results_file: results.sarif | ||
results_format: sarif | ||
repo_token: ${{ secrets.SCORECARD_TOKEN }} | ||
|
||
# Public repositories: | ||
# - Publish results to OpenSSF REST API for easy access by consumers | ||
# - Allows the repository to include the Scorecard badge. | ||
# - See https://github.com/ossf/scorecard-action#publishing-results. | ||
publish_results: true | ||
|
||
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF | ||
# format to the repository Actions tab. | ||
- name: "Upload artifact" | ||
uses: actions/upload-artifact@694cdabd8bdb0f10b2cea11669e1bf5453eed0a6 # v4.2.0 | ||
with: | ||
name: SARIF file | ||
path: results.sarif | ||
retention-days: 5 | ||
|
||
# Upload the results to GitHub's code scanning dashboard. | ||
- name: "Upload to code-scanning" | ||
uses: github/codeql-action/upload-sarif@0b21cf2492b6b02c465a3e5d7c473717ad7721ba # v3.23.1 | ||
with: | ||
sarif_file: results.sarif |
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,30 @@ | ||
name: 'woke' | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
- pull_request | ||
jobs: | ||
woke: | ||
name: 'woke' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout' | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@ae82ed4ae04587b665efad2f206578aa6f0e8539 # v42.0.0 | ||
with: | ||
write_output_files: true | ||
files: | | ||
** | ||
- name: 'woke' | ||
if: steps.changed-files.outputs.any_changed == 'true' | ||
uses: get-woke/woke-action@b2ec032c4a2c912142b38a6a453ad62017813ed0 # v0 | ||
with: | ||
# Cause the check to fail on any broke rules | ||
fail-on-error: true | ||
woke-args: ${{ steps.changed_files.outputs.all_changed_files }} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
go.mod | ||
go.sum | ||
vendor | ||
config/dummy.go | ||
.wokeignore |
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 |
---|---|---|
|
@@ -95,6 +95,11 @@ You must install these tools: | |
> **Note** Linter findings are dependent on your installed Go version. Match | ||
the version in [`go.mod`](go.mod) to match the findings in your PR. | ||
|
||
1. (Optional) | ||
[`woke`](https://docs.getwoke.tech/installation/) is executed for every pull | ||
request. To ensure your work does not contain offensive language, you may | ||
want to install and run this tool locally. | ||
|
||
### Configure environment | ||
|
||
To [build, deploy and run your Tekton Objects with `ko`](#install-pipeline), you'll need to set these environment variables: | ||
|
@@ -164,8 +169,11 @@ The Tekton project requires that you develop (commit) code changes to branches t | |
```shell | ||
git remote add upstream [email protected]:tektoncd/pipeline.git | ||
``` | ||
# Optional: Prevent accidental pushing of commits by changing the upstream URL to `no_push` | ||
1. Optional: Prevent accidental pushing of commits by changing the upstream URL to `no_push` | ||
```shell | ||
git remote set-url --push upstream no_push | ||
``` | ||
|
@@ -221,7 +229,7 @@ as follows. | |
```yaml | ||
kubectl create secret generic ${SECRET_NAME} \ | ||
--from-file=.dockerconfigjson=<path/to/.docker/config.json> \ | ||
--type=kubernetes.io/dockerconfigjson | ||
--type=kubernetes.io/dockerconfigjson \ | ||
--namespace=tekton-pipelines | ||
``` | ||
See [Configuring authentication for Docker](./docs/auth.md#configuring-authentication-for-docker) | ||
|
@@ -271,9 +279,9 @@ The recommended minimum development configuration is: | |
- 8 GB of (actual or virtualized) platform memory | ||
- Node autoscaling, up to 3 nodes | ||
#### Using [KinD](https://kind.sigs.k8s.io/) | ||
#### Using [Kind](https://kind.sigs.k8s.io/) | ||
[KinD](https://kind.sigs.k8s.io/) is a great tool for working with Kubernetes clusters locally. It is particularly useful to quickly test code against different cluster [configurations](https://kind.sigs.k8s.io/docs/user/quick-start/#advanced). | ||
[Kind](https://kind.sigs.k8s.io/) is a great tool for working with Kubernetes clusters locally. It is particularly useful to quickly test code against different cluster [configurations](https://kind.sigs.k8s.io/docs/user/quick-start/#advanced). | ||
1. Install [required tools](./DEVELOPMENT.md#install-tools) (note: may require a newer version of Go). | ||
2. Install [Docker](https://www.docker.com/get-started). | ||
|
@@ -353,7 +361,7 @@ While iterating on code changes to the project, you may need to: | |
- Update your (external) dependencies with: `./hack/update-deps.sh` | ||
- Update your type definitions with: `./hack/update-codegen.sh` | ||
- Update your OpenAPI specs with: `./hack/update-openapigen.sh` | ||
1. Update or [add new CRD types](#adding-new-types) as needed | ||
1. Update or [add new CRD types](#adding-new-crd-types) as needed | ||
1. Update, [add and run tests](./test/README.md#tests) | ||
|
||
To make changes to these CRDs, you will probably interact with: | ||
|
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 |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
|
||
approvers: | ||
- pipeline-approvers | ||
|
||
reviewers: | ||
- pipeline-reviewers |
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
Oops, something went wrong.