Skip to content

Commit

Permalink
Merge branch 'master' into stepsecurity_remediation_1733737294
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishb authored Dec 29, 2024
2 parents 96be7ab + d7fc146 commit 27da181
Show file tree
Hide file tree
Showing 31 changed files with 99 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/check-goreleaser-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/format-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/lint-github-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:
lintGitHubActionsWithActionLint:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -84,7 +88,8 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1.10.1

- name: Install zizmor
run: cargo install zizmor
# Install zizmor if it's not already installed via the Rust cache
run: zizmor --help || cargo install zizmor

- name: Run zizmor on GitHub Actions
run: zizmor .github/workflows/*
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint-markdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint-yaml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

Expand Down
2 changes: 1 addition & 1 deletion src/gabo/cmd/gabo/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.3.0
v1.3.1
2 changes: 1 addition & 1 deletion src/gabo/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ module github.com/ashishb/gabo/src/gabo
go 1.20

require (
github.com/bmatcuk/doublestar/v4 v4.7.1
github.com/rs/zerolog v1.33.0
github.com/stretchr/testify v1.10.0
)

require (
github.com/bmatcuk/doublestar/v4 v4.7.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
Expand Down
2 changes: 1 addition & 1 deletion src/gabo/internal/generator/all_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func GetOptions() []Option {
},
_Option{
"Shell Script Linter", "lint-shell-script", newFileMatcher("**/*.sh", "**/*.bash"),
newPatternMatcher("shellcheck "),
newPatternMatcher("shellcheck ", "action-shellcheck"),
newGenerator(_lintShellScriptYaml), "lint-shell-script.yaml",
},
_Option{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:

# Run locally with "act -j buildAndroid"
Expand Down
4 changes: 4 additions & 0 deletions src/gabo/internal/generator/data/build-docker-incomplete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:
buildDocker:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions src/gabo/internal/generator/data/build-npm-incomplete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:
buildNpm:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions src/gabo/internal/generator/data/build-yarn-incomplete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:
buildYarn:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions src/gabo/internal/generator/data/check-goreleaser-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:

checkGoReleaserConfig:
Expand Down
3 changes: 3 additions & 0 deletions src/gabo/internal/generator/data/compress-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:

name: Compress Images using Calibre
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
timeout-minutes: 15

steps:
Expand Down
4 changes: 4 additions & 0 deletions src/gabo/internal/generator/data/format-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:

validateCodeFormatGo:
Expand Down
4 changes: 4 additions & 0 deletions src/gabo/internal/generator/data/format-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:
formatPython:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions src/gabo/internal/generator/data/lint-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:

lintAndroid:
Expand Down
4 changes: 4 additions & 0 deletions src/gabo/internal/generator/data/lint-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:
# Run this locally with act - https://github.com/nektos/act
# act -j lintDocker
Expand Down
4 changes: 4 additions & 0 deletions src/gabo/internal/generator/data/lint-github-actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:
lintGitHubActionsWithActionLint:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions src/gabo/internal/generator/data/lint-go-incomplete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:

# Run it locally with https://github.com/nektos/act
Expand Down
4 changes: 4 additions & 0 deletions src/gabo/internal/generator/data/lint-html.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:

# Run this locally with act - https://github.com/nektos/act
Expand Down
4 changes: 4 additions & 0 deletions src/gabo/internal/generator/data/lint-markdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:
lintMarkdown:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions src/gabo/internal/generator/data/lint-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:
lintPython:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions src/gabo/internal/generator/data/lint-shell-script.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:

lintShellScript:
Expand Down
4 changes: 4 additions & 0 deletions src/gabo/internal/generator/data/lint-solidity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:

# Run it locally with https://github.com/nektos/act
Expand Down
4 changes: 4 additions & 0 deletions src/gabo/internal/generator/data/lint-yaml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:
lintYaml:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions src/gabo/internal/generator/data/translate-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read
pull-requests: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:

# Run locally with "act -j validateOpenAPISchema"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
permissions:
contents: read

jobs:
validateRenderBlueprint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 27da181

Please sign in to comment.