Skip to content

Commit

Permalink
Set permissions for GHA workflows (#18728)
Browse files Browse the repository at this point in the history
  • Loading branch information
r0mant authored Nov 23, 2022
1 parent 90a253b commit a6dfac7
Show file tree
Hide file tree
Showing 16 changed files with 43 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/doc-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
name: Lint (Docs)
runs-on: ubuntu-latest

permissions:
contents: read

container:
image: public.ecr.aws/gravitational/docs:latest
volumes:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/integration-tests-non-root.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:

permissions:
contents: read
id-token: write
packages: read

container:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/integration-tests-root.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:

permissions:
contents: read
id-token: write

container:
image: public.ecr.aws/gravitational/teleport-buildbox:teleport12
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
name: Lint (Go)
runs-on: ubuntu-22.04-16core

permissions:
contents: read

container:
image: public.ecr.aws/gravitational/teleport-buildbox:teleport12
env:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/os-compatibility-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
build:
name: Build Artifacts
runs-on: ubuntu-22.04-16core

permissions:
contents: read

container:
image: public.ecr.aws/gravitational/teleport-buildbox-centos7:teleport12
env:
Expand All @@ -36,6 +40,10 @@ jobs:
needs: build
name: Run Compatibility Test
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/unit-tests-code-bypass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ jobs:
test:
name: Unit Tests (Go)
runs-on: ubuntu-latest

permissions:
contents: none

steps:
- run: 'echo "No changes to verify"'
1 change: 0 additions & 1 deletion .github/workflows/unit-tests-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:

permissions:
contents: read
id-token: write
packages: read

container:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/unit-tests-helm-bypass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ jobs:
test:
name: Unit Tests (Helm)
runs-on: ubuntu-latest

permissions:
contents: none

steps:
- run: 'echo "No changes to verify"'
3 changes: 3 additions & 0 deletions .github/workflows/unit-tests-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
name: Unit Tests (Helm)
runs-on: ubuntu-latest

permissions:
contents: read

container:
image: public.ecr.aws/gravitational/teleport-buildbox:teleport12
env:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/unit-tests-operator-bypass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@ jobs:
test:
name: Unit Tests (Operator)
runs-on: ubuntu-latest

permissions:
contents: none

steps:
- run: 'echo "No changes to verify"'
3 changes: 3 additions & 0 deletions .github/workflows/unit-tests-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
name: Unit Tests (Operator)
runs-on: ubuntu-latest

permissions:
contents: read

container:
image: public.ecr.aws/gravitational/teleport-buildbox:teleport12
options: --cap-add=SYS_ADMIN --privileged
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/unit-tests-rust-bypass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ jobs:
test:
name: Unit Tests (Rust)
runs-on: ubuntu-latest

permissions:
contents: none

steps:
- run: 'echo "No changes to verify"'
4 changes: 4 additions & 0 deletions .github/workflows/unit-tests-rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
test:
name: Unit Tests (Rust)
runs-on: ubuntu-latest

permissions:
contents: read

container:
image: public.ecr.aws/gravitational/teleport-buildbox:teleport12
options: --cap-add=SYS_ADMIN --privileged
Expand Down
2 changes: 1 addition & 1 deletion api/types/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
azureutils "github.com/gravitational/teleport/api/utils/azure"
)

// Database represents a database proxied by a database server.
// Database represents a single database proxied by a database server.
type Database interface {
// ResourceWithLabels provides common resource methods.
ResourceWithLabels
Expand Down
2 changes: 1 addition & 1 deletion examples/chart/teleport-kube-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: teleport-kube-agent
apiVersion: v2
version: *version
appVersion: *version
description: Teleport provides a secure SSH and Kubernetes remote access solution that doesn't get in the way.
description: Teleport provides a secure SSH, Kubernetes, database and application remote access solution that doesn't get in the way.
icon: https://goteleport.com/images/logos/logo-teleport-square.svg
keywords:
- Teleport
2 changes: 1 addition & 1 deletion lib/srv/desktop/rdp/rdpclient/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn main() {
.unwrap();

// atomically swap the header in place, just in case there's multiple
// compilations at the same time
// compilations at the same time.
let out = tempfile::NamedTempFile::new_in(".").unwrap();
bindings.write(&out);

Expand Down

0 comments on commit a6dfac7

Please sign in to comment.