Skip to content
Merged
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
10 changes: 7 additions & 3 deletions .github/workflows/backend-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
- 'backend/**'
- '.github/workflows/backend-ci.yaml'

permissions:
contents: read
pull-requests: read

jobs:
golang-lint:
name: Golang CI Lint
Expand All @@ -33,10 +37,10 @@ jobs:
run: |
# Install golangci-lint
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.2.1

# Add golangci-lint to PATH
export PATH=$PATH:$(go env GOPATH)/bin

# Run golangci-lint
golangci-lint run --config ../.github/.golangci.yaml

Expand Down Expand Up @@ -70,4 +74,4 @@ jobs:
slug: coze-dev/cozeloop
fail_ci_if_error: false
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 4 additions & 0 deletions .github/workflows/frontend-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
- '.github/workflows/frontend-ci.yaml'
workflow_dispatch:

permissions:
contents: read
pull-requests: read

jobs:
setup:
name: Build All
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/frontend-tsc-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
- '.github/workflows/frontend-tsc-ci.yaml'
workflow_dispatch:

permissions:
contents: read
pull-requests: read

jobs:
setup:
name: TS Check
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/idl.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Thrift Syntax Validation

on:
on:
push:
paths:
- 'idl/**'
Expand All @@ -10,6 +10,10 @@ on:
- 'idl/**'
- '.github/workflows/idl.yaml'

permissions:
contents: read
pull-requests: read

jobs:
validate-thrift:
runs-on: ubuntu-latest
Expand All @@ -32,15 +36,15 @@ jobs:
run: |
# Initialize error flag
ERROR_FOUND=0

# Create temporary working directory
TEMP_DIR=$(mktemp -d)
echo "Created temporary working directory: $TEMP_DIR"

# Initialize go mod in temp directory
cd "$TEMP_DIR"
go mod init dummy

# Find all thrift files and validate them
while IFS= read -r -d '' thrift_file; do
echo "Validating $thrift_file..."
Expand All @@ -49,17 +53,17 @@ jobs:
ERROR_FOUND=1
fi
done < <(find "$GITHUB_WORKSPACE/idl" -name '*.thrift' -print0)

# Clean up temporary directory
cd "$GITHUB_WORKSPACE"
rm -rf "$TEMP_DIR"
echo "Cleaned up temporary working directory"

# Exit with appropriate status
if [ $ERROR_FOUND -eq 1 ]; then
echo "Thrift validation failed. Please check the errors above."
exit 1
else
echo "All Thrift files validated successfully!"
exit 0
fi
fi
4 changes: 4 additions & 0 deletions .github/workflows/issue-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
issues:
types: ['opened', 'reopened']

permissions:
contents: read
pull-requests: read

jobs:
sync:
name: Sync Issues
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/license-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ on:
pull_request:
branches: ['main']
workflow_dispatch:


permissions:
contents: read
pull-requests: read

jobs:
license-check:
name: License Check
Expand All @@ -16,11 +20,11 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: 1.23

- name: Install license-eye
run: |
go install github.com/apache/skywalking-eyes/cmd/license-eye@main

- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -29,7 +33,7 @@ jobs:
- name: License Header Check
run: |
license-eye header check -c .github/.licenserc.yaml

- name: License Dependency Check
run: |
license-eye dependency check -c .github/.licenserc.yaml
4 changes: 4 additions & 0 deletions .github/workflows/pr-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
pull_request_target:
types: ['opened', 'reopened', 'closed']

permissions:
contents: read
pull-requests: read

jobs:
sync:
name: Send Lark Message
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/semantic-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}
cancel-in-progress: true

permissions:
contents: read
pull-requests: read

jobs:
main:
name: Check Pull Request Title
Expand Down
Loading