diff --git a/.github/linters/.yaml-lint.yml b/.github/linters/.yaml-lint.yml new file mode 100644 index 0000000..32ff17d --- /dev/null +++ b/.github/linters/.yaml-lint.yml @@ -0,0 +1,9 @@ +# Extends the default yamllint config by adjusting some options. +extends: default + +rules: + comments-indentation: disable + line-length: + level: warning + allow-non-breakable-inline-mappings: true + truthy: disable diff --git a/.github/workflows/add-labels-standardized.yaml b/.github/workflows/add-labels-standardized.yaml index c20a712..1360a67 100644 --- a/.github/workflows/add-labels-standardized.yaml +++ b/.github/workflows/add-labels-standardized.yaml @@ -1,4 +1,4 @@ -name: 'add labels standardized' +name: add labels standardized on: issues: diff --git a/.github/workflows/add-to-project-garage-dependabot.yaml b/.github/workflows/add-to-project-garage-dependabot.yaml index d7adc03..1608560 100644 --- a/.github/workflows/add-to-project-garage-dependabot.yaml +++ b/.github/workflows/add-to-project-garage-dependabot.yaml @@ -1,14 +1,13 @@ -name: 'add to project garage dependabot' +name: add to project garage dependabot on: pull_request: branches: [main] jobs: - add-to-project-dependabot: secrets: SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }} - uses: senzing-factory/build-resources/.github/workflows/add-to-project-dependabot.yaml@main + uses: senzing-factory/build-resources/.github/workflows/add-to-project-dependabot.yaml@v1 with: project: ${{ vars.SENZING_PROJECT_GARAGE }} diff --git a/.github/workflows/add-to-project-garage.yaml b/.github/workflows/add-to-project-garage.yaml index ddebc40..c504727 100644 --- a/.github/workflows/add-to-project-garage.yaml +++ b/.github/workflows/add-to-project-garage.yaml @@ -1,4 +1,4 @@ -name: 'add to project garage' +name: add to project garage on: issues: @@ -8,11 +8,12 @@ on: jobs: add-to-project: - name: Add issue to project + name: add issue to project runs-on: ubuntu-latest + steps: - - name: Assign issue to project + - name: assign issue to project uses: actions/add-to-project@v0.5.0 with: - project-url: https://github.com/orgs/${{ vars.SENZING_GITHUB_ACCOUNT_NAME }}/projects/${{ vars.SENZING_PROJECT_GARAGE }} github-token: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }} + project-url: https://github.com/orgs/${{ vars.SENZING_GITHUB_ACCOUNT_NAME }}/projects/${{ vars.SENZING_PROJECT_GARAGE }} diff --git a/.github/workflows/dependabot-approve-and-merge.yaml b/.github/workflows/dependabot-approve-and-merge.yaml index 0c15821..15a5bf9 100644 --- a/.github/workflows/dependabot-approve-and-merge.yaml +++ b/.github/workflows/dependabot-approve-and-merge.yaml @@ -1,12 +1,14 @@ -name: dependabot-approve-and-merge.yaml +name: dependabot approve and merge + on: pull_request: branches: [main] + jobs: dependabot-approve-and-merge: permissions: contents: write pull-requests: write - uses: senzing-factory/build-resources/.github/workflows/dependabot-approve-and-merge.yaml@main secrets: SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN: ${{ secrets.SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN }} + uses: senzing-factory/build-resources/.github/workflows/dependabot-approve-and-merge.yaml@v1 diff --git a/.github/workflows/go-proxy-pull.yaml b/.github/workflows/go-proxy-pull.yaml index 102a437..967485e 100644 --- a/.github/workflows/go-proxy-pull.yaml +++ b/.github/workflows/go-proxy-pull.yaml @@ -1,10 +1,4 @@ -# Based on -# - https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions -# - https://github.com/marketplace/actions/go-proxy-warming -# - https://github.com/andrewslotin/go-proxy-pull-action -# - https://futurestud.io/tutorials/github-actions-run-a-workflow-when-creating-a-tag - -name: go-proxy-pull.yaml +name: go proxy pull on: push: @@ -17,8 +11,9 @@ permissions: jobs: go-proxy-pull: runs-on: ubuntu-latest + steps: - - name: Pull new module version + - name: pull new module version uses: andrewslotin/go-proxy-pull-action@v1.1.0 with: import_path: github.com/senzing-garage/go-queueing diff --git a/.github/workflows/go-test-darwin.yaml b/.github/workflows/go-test-darwin.yaml index da06110..7e9d9c4 100644 --- a/.github/workflows/go-test-darwin.yaml +++ b/.github/workflows/go-test-darwin.yaml @@ -1,7 +1,4 @@ -# Based on -# - https://github.com/marketplace/actions/setup-go-environment - -name: go-test-darwin.yaml +name: go test darwin on: [push] @@ -10,20 +7,23 @@ permissions: jobs: go-test-darwin: + name: "go test with OS: ${{ matrix.os }}; Go: ${{ matrix.go }}" runs-on: ${{ matrix.os }} strategy: matrix: go: ["1.21"] os: [macos-latest] - name: "go test with OS: ${{ matrix.os }}; Go: ${{ matrix.go }}" + steps: - - name: Checkout repository + - name: checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Setup go + + - name: setup go uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} - - name: Run go test + + - name: run go test run: go test -v -p 1 ./... diff --git a/.github/workflows/go-test-linux.yaml b/.github/workflows/go-test-linux.yaml index 73f9591..7d702e8 100644 --- a/.github/workflows/go-test-linux.yaml +++ b/.github/workflows/go-test-linux.yaml @@ -1,7 +1,4 @@ -# Based on -# - https://github.com/marketplace/actions/setup-go-environment - -name: go-test-linux.yaml +name: go test linux on: [push] @@ -10,20 +7,23 @@ permissions: jobs: go-test-linux: + name: "go test with OS: ${{ matrix.os }}; Go: ${{ matrix.go }}" runs-on: ${{ matrix.os }} strategy: matrix: go: ["1.21"] os: [ubuntu-latest] - name: "go test with OS: ${{ matrix.os }}; Go: ${{ matrix.go }}" + steps: - - name: Checkout repository + - name: checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Setup go + + - name: setup go uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} - - name: Run go test + + - name: run go test run: go test -v -p 1 ./... diff --git a/.github/workflows/go-test-windows.yaml b/.github/workflows/go-test-windows.yaml index 4f33717..593fdc1 100644 --- a/.github/workflows/go-test-windows.yaml +++ b/.github/workflows/go-test-windows.yaml @@ -1,7 +1,4 @@ -# Based on -# - https://github.com/marketplace/actions/setup-go-environment - -name: go-test-windows.yaml +name: go test windows on: [push] @@ -10,20 +7,23 @@ permissions: jobs: go-test-windows: + name: "go test with OS: ${{ matrix.os }}; Go: ${{ matrix.go }}" runs-on: ${{ matrix.os }} strategy: matrix: go: ["1.21"] os: [windows-latest] - name: "go test with OS: ${{ matrix.os }}; Go: ${{ matrix.go }}" + steps: - - name: Checkout repository + - name: checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Setup go + + - name: setup go uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} - - name: Run go test + + - name: run go test run: go test -v -p 1 ./... diff --git a/.github/workflows/gofmt.yaml b/.github/workflows/gofmt.yaml index 59ced20..122d306 100644 --- a/.github/workflows/gofmt.yaml +++ b/.github/workflows/gofmt.yaml @@ -1,4 +1,4 @@ -name: gofmt.yaml +name: gofmt on: pull_request: @@ -9,4 +9,4 @@ permissions: jobs: gofmt: - uses: senzing-factory/build-resources/.github/workflows/gofmt.yaml@main + uses: senzing-factory/build-resources/.github/workflows/gofmt.yaml@v1 diff --git a/.github/workflows/gosec.yaml b/.github/workflows/gosec.yaml index ee7679b..2a3b8b2 100644 --- a/.github/workflows/gosec.yaml +++ b/.github/workflows/gosec.yaml @@ -1,7 +1,4 @@ -# Based on -# - https://github.com/securego/gosec - -name: gosec.yaml +name: gosec on: push: @@ -19,10 +16,12 @@ jobs: runs-on: ubuntu-latest env: GO111MODULE: on + steps: - - name: Checkout Source + - name: checkout repository uses: actions/checkout@v4 - - name: Run Gosec Security Scanner - uses: securego/gosec@master + + - name: run Gosec Security Scanner + uses: securego/gosec@v2.19.0 with: args: ./... diff --git a/.github/workflows/lint-workflows.yaml b/.github/workflows/lint-workflows.yaml new file mode 100644 index 0000000..1bcd936 --- /dev/null +++ b/.github/workflows/lint-workflows.yaml @@ -0,0 +1,17 @@ +name: lint workflows + +on: + push: + branches-ignore: [main] + pull_request: + branches: [main] + +permissions: + contents: read + packages: read + pull-requests: read + statuses: write + +jobs: + lint-workflows: + uses: senzing-factory/build-resources/.github/workflows/lint-workflows.yaml@v1 diff --git a/.github/workflows/make-go-tag.yaml b/.github/workflows/make-go-tag.yaml index fa51bae..5a25899 100644 --- a/.github/workflows/make-go-tag.yaml +++ b/.github/workflows/make-go-tag.yaml @@ -1,4 +1,4 @@ -name: make-go-tag.yaml +name: make go tag on: push: @@ -10,10 +10,12 @@ permissions: jobs: make-go-tag: - name: Make a vM.m.P tag + name: make a vM.m.P tag runs-on: ubuntu-latest + steps: - - name: Checkout repository + - name: checkout repository uses: actions/checkout@v4 - - name: Make go version tag - uses: senzing-factory/github-action-make-go-tag@main + + - name: make go version tag + uses: senzing-factory/github-action-make-go-tag@v1