Skip to content

Commit

Permalink
NO-ISSUE: Remove unnecessary GH workflows and fix sec advisories (#217)
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
  • Loading branch information
ricardozanini authored Dec 23, 2024
1 parent e2f1f94 commit bc3336e
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 132 deletions.
8 changes: 6 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

source:
- '**/*'
"documentation :notebook:":
- changed-files:
- any-glob-to-any-file: ['contrib/*', '**/*.md']
kubernetes:
- changed-files:
- any-glob-to-any-file: ['kubernetes/*', 'hack/builder-gen.sh', 'hack/deepcopy-gen.sh', 'Makefile']
27 changes: 0 additions & 27 deletions .github/labels.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/Go-SDK-Check-k8s-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ on:
- "Makefile"
branches:
- main

permissions:
contents: read

env:
GO_VERSION: 1.22
jobs:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/Go-SDK-PR-Check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ on:
- "Makefile"
branches:
- main

permissions:
contents: read

env:
GO_VERSION: 1.22
jobs:
Expand Down Expand Up @@ -67,7 +71,7 @@ jobs:
changed_files=$(git status -s | grep -v 'go.mod\|go.sum\|tools.mod\|tools.sum' || :)
[[ -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)
- name: Check lint
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 - Please ALWAYS use SHA to avoid GH sec issues
with:
version: latest
- name: Install cover
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/prow_commands.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/prow_cron_pull_request_merge.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/prow_remove_lgtm.yml

This file was deleted.

8 changes: 3 additions & 5 deletions .github/workflows/pull_request_labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@

name: "Pull Request Labeler"
on:
- pull_request_target
- pull_request_target

jobs:
triage:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4.0.2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/labeler@v5
4 changes: 3 additions & 1 deletion .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ name: Mark stale issues and pull requests
on:
schedule:
- cron: "0 0 * * *"

permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
Expand Down

0 comments on commit bc3336e

Please sign in to comment.