Skip to content
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

enh: update deps, workflows and dependabot #14

Merged
merged 7 commits into from
Apr 12, 2024
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
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ This pull request updates the query to load data into Neo4j database using an th

## Checks

- [] I have addressed any CI failures that surfaced when I created my pull request
- [ ] I have addressed any CI failures that surfaced when I created my pull request
34 changes: 26 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: ".github"
schedule:
interval: weekly
- package-ecosystem: "docker"
directory: "/"
schedule:
interval: weekly
- package-ecosystem: gomod
directory: /
schedule:
interval: monthly
time: "12:00"
day: monday
groups:
iamme:
patterns:
- "*"
- package-ecosystem: docker
directory: /
schedule:
interval: monthly
time: "12:00"
day: wednesday
groups:
iamme-docker:
patterns:
- "*"
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
time: "12:00"
day: wednesday
29 changes: 0 additions & 29 deletions .github/workflows/golanci-lint.yml

This file was deleted.

89 changes: 89 additions & 0 deletions .github/workflows/golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: Golang CI
on:
push:
branches:
- master
- dev
paths:
- "**.go"
- "go.mod"
- "go.sum"
pull_request:
paths:
- "**.go"
- "go.mod"
- "go.sum"

concurrency:
group: nuvola-ci-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
pull-requests: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
# v4.1.2
with:
fetch-depth: 0
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
# v5.0.0
with:
go-version: "1.21"
- name: golangci-lint
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804
# v4.0.0
with:
version: latest
only-new-issues: true
args: --timeout 300s --exclude-dirs="(^|/)assets($|/)" --enable misspell --enable gofmt --enable goimports --enable whitespace

gosec:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- name: Checkout Source
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
# v4.1.2
with:
fetch-depth: 0
- name: Run Gosec Security Scanner
# master to fetch latest checks
# kics-scan ignore-line
uses: securego/gosec@26e57d6b340778c2983cd61775bc7e8bb41d002a
# V.2.19.0
with:
args: "-exclude-dir=assets -no-fail -fmt sarif -out results.sarif ./..."
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@4b6aa0b07da05d6e43d0e5f9c8596a6532ce1c85
# v2.15.3
with:
sarif_file: ./results.sarif

go-build-and-test:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
# v4.1.2
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
# v5.0.0
with:
go-version: "1.21"
- name: Install dependencies
run: go get .
- name: Build
run: go build ./...
- name: Test with the Go CLI
run: go test ./...
31 changes: 0 additions & 31 deletions .github/workflows/gosec.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/stale-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v6
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e
# v9.0.0
with:
stale-issue-message: "This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days."
close-issue-message: "This issue was closed because it has been stalled for 5 days with no activity."
Expand Down
3 changes: 2 additions & 1 deletion connector/cloud_connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package connector

import (
"errors"
awsconfig "nuvola/connector/services/aws"
"strings"

awsconfig "github.com/primait/nuvola/connector/services/aws"
)

func NewCloudConnector(profile string, endpointUrl string) (*CloudConnector, error) {
Expand Down
4 changes: 2 additions & 2 deletions connector/connector_structs.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package connector

import (
awsconfig "nuvola/connector/services/aws"
neo4jconnector "nuvola/connector/services/neo4j"
awsconfig "github.com/primait/nuvola/connector/services/aws"
neo4jconnector "github.com/primait/nuvola/connector/services/neo4j"
)

type StorageConnector struct {
Expand Down
15 changes: 8 additions & 7 deletions connector/services/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import (
"context"
"os"

"nuvola/connector/services/aws/database"
"nuvola/connector/services/aws/ec2"
"nuvola/connector/services/aws/iam"
"nuvola/connector/services/aws/lambda"
"nuvola/connector/services/aws/s3"
"nuvola/connector/services/aws/sts"
nuvolaerror "nuvola/tools/error"
nuvolaerror "github.com/primait/nuvola/tools/error"

"github.com/primait/nuvola/connector/services/aws/database"
"github.com/primait/nuvola/connector/services/aws/ec2"
"github.com/primait/nuvola/connector/services/aws/iam"
"github.com/primait/nuvola/connector/services/aws/lambda"
"github.com/primait/nuvola/connector/services/aws/s3"
"github.com/primait/nuvola/connector/services/aws/sts"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/retry"
Expand Down
6 changes: 4 additions & 2 deletions connector/services/aws/database/dynamodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ package database
import (
"context"
"errors"
"nuvola/connector/services/aws/ec2"
nuvolaerror "nuvola/tools/error"

nuvolaerror "github.com/primait/nuvola/tools/error"

"github.com/primait/nuvola/connector/services/aws/ec2"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/dynamodb"
Expand Down
6 changes: 4 additions & 2 deletions connector/services/aws/database/rds.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ package database
import (
"context"
"errors"
"nuvola/connector/services/aws/ec2"
nuvolaerror "nuvola/tools/error"

nuvolaerror "github.com/primait/nuvola/tools/error"

"github.com/primait/nuvola/connector/services/aws/ec2"

"github.com/aws/aws-sdk-go-v2/aws"
awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http"
Expand Down
6 changes: 4 additions & 2 deletions connector/services/aws/database/redshift.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ package database
import (
"context"
"errors"
"nuvola/connector/services/aws/ec2"
nuvolaerror "nuvola/tools/error"

nuvolaerror "github.com/primait/nuvola/tools/error"

"github.com/primait/nuvola/connector/services/aws/ec2"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/redshift"
Expand Down
3 changes: 2 additions & 1 deletion connector/services/aws/ec2/ec2s.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"context"
b64 "encoding/base64"
"errors"
nuvolaerror "nuvola/tools/error"
"sync"

nuvolaerror "github.com/primait/nuvola/tools/error"

"github.com/aws/aws-sdk-go-v2/aws"
awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http"
"github.com/aws/aws-sdk-go-v2/service/ec2"
Expand Down
3 changes: 2 additions & 1 deletion connector/services/aws/ec2/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package ec2
import (
"context"
"errors"
nuvolaerror "nuvola/tools/error"

nuvolaerror "github.com/primait/nuvola/tools/error"

"github.com/aws/aws-sdk-go-v2/aws"
awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http"
Expand Down
3 changes: 2 additions & 1 deletion connector/services/aws/ec2/vpcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package ec2
import (
"context"
"errors"
nuvolaerror "nuvola/tools/error"

nuvolaerror "github.com/primait/nuvola/tools/error"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/ec2"
Expand Down
3 changes: 2 additions & 1 deletion connector/services/aws/iam/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package iam
import (
"context"
"errors"
nuvolaerror "nuvola/tools/error"
"sort"
"sync"

nuvolaerror "github.com/primait/nuvola/tools/error"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/iam"
"github.com/aws/aws-sdk-go-v2/service/iam/types"
Expand Down
3 changes: 2 additions & 1 deletion connector/services/aws/iam/policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
"errors"
"fmt"
"net/url"
nuvolaerror "nuvola/tools/error"
"strings"

nuvolaerror "github.com/primait/nuvola/tools/error"

"github.com/aws/aws-sdk-go-v2/service/accessanalyzer"
aat "github.com/aws/aws-sdk-go-v2/service/accessanalyzer/types"
"github.com/aws/aws-sdk-go-v2/service/iam"
Expand Down
3 changes: 2 additions & 1 deletion connector/services/aws/iam/roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import (
"encoding/json"
"errors"
"net/url"
nuvolaerror "nuvola/tools/error"
"reflect"
"sort"
"sync"

nuvolaerror "github.com/primait/nuvola/tools/error"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/iam"
"github.com/aws/aws-sdk-go-v2/service/iam/types"
Expand Down
3 changes: 2 additions & 1 deletion connector/services/aws/iam/users.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import (
"context"
"errors"
"log"
nuvolaerror "nuvola/tools/error"
"sort"
"sync"
"time"

nuvolaerror "github.com/primait/nuvola/tools/error"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/iam"
"github.com/aws/aws-sdk-go-v2/service/iam/types"
Expand Down
6 changes: 4 additions & 2 deletions connector/services/aws/lambda/lambda.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import (
"context"
"encoding/json"
"errors"
"nuvola/connector/services/aws/ec2"
nuvolaerror "nuvola/tools/error"
"sync"

nuvolaerror "github.com/primait/nuvola/tools/error"

"github.com/primait/nuvola/connector/services/aws/ec2"

"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/aws/transport/http"
"github.com/aws/aws-sdk-go-v2/service/lambda"
Expand Down
Loading
Loading