feat: use logged-in user credentials for all LDAP operations #1309
This file contains hidden or 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
| name: Check | |
| on: | |
| release: | |
| types: [published] | |
| pull_request: | |
| merge_group: | |
| push: | |
| branches: | |
| - main | |
| # Default read-only permissions for security hardening | |
| permissions: | |
| contents: read | |
| jobs: | |
| go-test: | |
| name: Run Go tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up Go | |
| uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 | |
| with: | |
| go-version: "1.26.0" | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 | |
| with: | |
| node-version: "24" | |
| cache: "pnpm" | |
| - name: Install templ CLI | |
| run: go install github.com/a-h/templ/cmd/templ@latest | |
| - name: Install dependencies | |
| run: pnpm install && go mod download | |
| - name: Check types | |
| run: pnpm build:assets | |
| - name: Build | |
| run: go build -v ./cmd/ldap-manager | |
| - name: Test | |
| run: go test -v ./... | |
| formatting: | |
| name: Check formatting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 | |
| with: | |
| node-version: "24" | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Check formatting | |
| run: pnpm prettier --check . |