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

senzing-factory/build-resources#15 update go workflow permissions #204

Merged
merged 1 commit into from
Jan 26, 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
5 changes: 5 additions & 0 deletions .github/workflows/go-proxy-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@
# - https://futurestud.io/tutorials/github-actions-run-a-workflow-when-creating-a-tag

name: go-proxy-pull.yaml

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

permissions:
contents: write

jobs:
go-proxy-pull:
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/go-test-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@
# - https://github.com/marketplace/actions/setup-go-environment

name: go-test-darwin.yaml

on: [push]

env:
DYLD_LIBRARY_PATH: /opt/senzing/g2/lib:/opt/senzing/g2/lib/macos
LD_LIBRARY_PATH: /opt/senzing/g2/lib:/opt/senzing/g2/lib/macos
SENZING_TOOLS_DATABASE_URL: "sqlite3://na:na@/tmp/sqlite/G2C.db"

permissions:
contents: read

jobs:
go-test-darwin:
runs-on: ${{ matrix.os }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/go-test-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
# - https://github.com/marketplace/actions/setup-go-environment

name: go-test-linux.yaml

on: [push]

env:
LD_LIBRARY_PATH: /opt/senzing/g2/lib
SENZING_TOOLS_DATABASE_URL: "sqlite3://na:na@/tmp/sqlite/G2C.db"

permissions:
contents: read

jobs:
go-test-linux:
runs-on: ${{ matrix.os }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/go-test-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
# - https://github.com/marketplace/actions/setup-go-environment

name: go-test-windows.yaml

on: [push]

env:
SENZING_TOOLS_DATABASE_URL: 'sqlite3://na:na@nowhere/C:\Temp\sqlite\G2C.db'
SENZING_TOOLS_LOG_LEVEL: TRACE

permissions:
contents: read

jobs:
go-test-windows:
runs-on: ${{ matrix.os }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/gofmt.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: gofmt.yaml

on:
pull_request:
branches: [main]

permissions:
contents: read

jobs:
gofmt:
uses: senzing-factory/build-resources/.github/workflows/gofmt.yaml@main
5 changes: 5 additions & 0 deletions .github/workflows/gosec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
# - https://github.com/securego/gosec

name: gosec.yaml

on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: read

jobs:
gosec:
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/make-go-github-file.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: make-go-github-file.yaml

on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
permissions: write-all

permissions:
contents: write

jobs:
make-go-github-file:
uses: senzing-factory/build-resources/.github/workflows/make-go-github-file.yaml@main
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/make-go-tag.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: make-go-tag.yaml

on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
permissions: write-all

permissions:
contents: write

jobs:
make-go-tag:
name: Make a vM.m.P tag
Expand Down