Skip to content

Commit

Permalink
feat: improve all actions base templates (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishb authored Dec 29, 2024
1 parent 97fda62 commit d7fc146
Show file tree
Hide file tree
Showing 20 changed files with 81 additions and 0 deletions.
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
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 d7fc146

Please sign in to comment.