Skip to content

Commit bc3336e

Browse files
NO-ISSUE: Remove unnecessary GH workflows and fix sec advisories (#217)
Signed-off-by: Ricardo Zanini <[email protected]>
1 parent e2f1f94 commit bc3336e

9 files changed

+21
-132
lines changed

.github/labeler.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
source:
16-
- '**/*'
15+
"documentation :notebook:":
16+
- changed-files:
17+
- any-glob-to-any-file: ['contrib/*', '**/*.md']
18+
kubernetes:
19+
- changed-files:
20+
- any-glob-to-any-file: ['kubernetes/*', 'hack/builder-gen.sh', 'hack/deepcopy-gen.sh', 'Makefile']

.github/labels.yml

-27
This file was deleted.

.github/workflows/Go-SDK-Check-k8s-integration.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ on:
2222
- "Makefile"
2323
branches:
2424
- main
25+
26+
permissions:
27+
contents: read
28+
2529
env:
2630
GO_VERSION: 1.22
2731
jobs:

.github/workflows/Go-SDK-PR-Check.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ on:
2222
- "Makefile"
2323
branches:
2424
- main
25+
26+
permissions:
27+
contents: read
28+
2529
env:
2630
GO_VERSION: 1.22
2731
jobs:
@@ -67,7 +71,7 @@ jobs:
6771
changed_files=$(git status -s | grep -v 'go.mod\|go.sum\|tools.mod\|tools.sum' || :)
6872
[[ -z "$changed_files" ]] || (printf "Some files are not formatted properly: \n$changed_files\n Did you run 'make test' before sending the PR?" && exit 1)
6973
- name: Check lint
70-
uses: golangci/golangci-lint-action@v6
74+
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 - Please ALWAYS use SHA to avoid GH sec issues
7175
with:
7276
version: latest
7377
- name: Install cover

.github/workflows/prow_commands.yml

-43
This file was deleted.

.github/workflows/prow_cron_pull_request_merge.yml

-28
This file was deleted.

.github/workflows/prow_remove_lgtm.yml

-25
This file was deleted.

.github/workflows/pull_request_labeler.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@
1414

1515
name: "Pull Request Labeler"
1616
on:
17-
- pull_request_target
17+
- pull_request_target
1818

1919
jobs:
20-
triage:
20+
labeler:
2121
permissions:
2222
contents: read
2323
pull-requests: write
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/[email protected]
27-
with:
28-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
26+
- uses: actions/labeler@v5

.github/workflows/stale.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ name: Mark stale issues and pull requests
1616
on:
1717
schedule:
1818
- cron: "0 0 * * *"
19-
19+
permissions:
20+
issues: write
21+
pull-requests: write
2022
jobs:
2123
stale:
2224
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)