-
Notifications
You must be signed in to change notification settings - Fork 133
chore: test self hosted runner #408
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: master
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 |
|---|---|---|
|
|
@@ -13,7 +13,7 @@ on: | |
| jobs: | ||
| job_1: | ||
| name: Build goc binary | ||
| runs-on: ubuntu-latest | ||
| runs-on: self-hosted | ||
|
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. Security & Performance Issues:
|
||
| steps: | ||
| - name: Install Go | ||
| uses: actions/setup-go@v2 | ||
|
|
@@ -44,7 +44,7 @@ jobs: | |
| strategy: | ||
| matrix: | ||
| go-version: [1.16.x, 1.17.x, 1.18.x, 1.19.x] | ||
| runs-on: ubuntu-latest | ||
| runs-on: self-hosted | ||
| steps: | ||
| - name: Install Go | ||
| uses: actions/setup-go@v2 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,11 +4,11 @@ on: | |
| jobs: | ||
| golangci: | ||
| name: lint | ||
| runs-on: ubuntu-latest | ||
| runs-on: self-hosted | ||
|
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. Security issue: This workflow runs on all pull_request events using self-hosted runners, creating an attack vector for malicious PRs. |
||
| steps: | ||
| - uses: actions/setup-go@v3 | ||
| with: | ||
| go-version: '1.17' | ||
| go-version: "1.17" | ||
|
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. This quote style change (single to double) is unrelated to the runner migration. Consider reverting formatting changes or moving them to a separate PR to keep changes focused. |
||
| - uses: actions/checkout@v3 | ||
| - name: golangci-lint | ||
| uses: golangci/golangci-lint-action@v3 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,20 +4,20 @@ on: | |
| # but only for the master branch | ||
| push: | ||
| paths-ignore: | ||
| - '**.md' | ||
| - '**.png' | ||
| - "**.md" | ||
| - "**.png" | ||
| pull_request: | ||
| paths-ignore: | ||
| - '**.md' | ||
| - '**.png' | ||
| - "**.md" | ||
| - "**.png" | ||
| jobs: | ||
| run: | ||
| name: vet and gofmt | ||
| strategy: | ||
| matrix: | ||
| # We have generics code, so only 1.18+ can work | ||
| go-version: [1.19.x] | ||
| runs-on: ubuntu-latest | ||
| runs-on: self-hosted | ||
|
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. Security issue: |
||
| steps: | ||
| - name: Install Go | ||
| uses: actions/setup-go@v2 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,7 @@ jobs: | |
| strategy: | ||
| matrix: | ||
| go-version: [1.16.x, 1.17.x, 1.18.x, 1.19.x] | ||
| runs-on: ubuntu-latest | ||
| runs-on: self-hosted | ||
|
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. Same security concern: |
||
| steps: | ||
| - name: Install Go | ||
| uses: actions/setup-go@v2 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -97,6 +97,9 @@ var ( | |
| force bool // --force flag | ||
| output string // --output flag | ||
| coverFilePatterns []string // --coverfile flag | ||
|
|
||
|
|
||
|
|
||
|
Comment on lines
+100
to
+102
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.
Comment on lines
+100
to
+102
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. These blank lines appear to be accidental and should be removed. They violate Go formatting conventions and are unrelated to the PR's purpose.
Comment on lines
+100
to
+102
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. Remove these unnecessary blank lines. This appears to be an accidental formatting change that reduces code consistency.
Comment on lines
+100
to
+102
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. These blank lines (including one with trailing whitespace) should be removed. They don't serve any purpose and are inconsistent with the codebase style. This appears to be an accidental addition unrelated to the PR's purpose. |
||
| skipFilePatterns []string // --skipfile flag | ||
| ) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Critical Security: Running untrusted PR code on self-hosted runners allows attackers to:
Consider restricting self-hosted runners to protected branches only, or implement approval requirements for external PRs.