Skip to content
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
3 changes: 3 additions & 0 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
types:
- created

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/check-pr-formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: [ main, 0.x ]
types: [opened, synchronize, edited]

permissions:
contents: read

jobs:
pr-formatting:
runs-on: ubuntu-slim
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@ name: Code quality checks

on:
workflow_call:
inputs:
branch:
required: false
type: string
description: 'Branch to run on'
push:
branches: [ main, 0.x ]

permissions:
contents: read

jobs:
check-code:
runs-on: ubuntu-latest
permissions:
contents: read
cache-mode: none
steps:
- name: Check out code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: ${{ inputs.branch }}
persist-credentials: false

- name: Set up Python 3.10
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/integration-tests-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ on:
secrets:
SLACK_BOT_TOKEN:
required: false

permissions:
contents: read

jobs:
run-core-integration-tests:
permissions:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration-tests-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
type: string
default: ''

permissions:
contents: read

jobs:
tests:
permissions:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
required: true
FIREBOLT_CLIENT_SECRET_STG_NEW_IDN:
required: true

permissions:
contents: read

jobs:
integration-test-v2:
uses: ./.github/workflows/integration-tests-v2.yml
Expand All @@ -16,6 +20,8 @@ jobs:
integration-test-core:
uses: ./.github/workflows/integration-tests-core.yml
report-test-results:
permissions:
statuses: write
needs: [integration-test-v2, integration-test-core]
if: always()
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/nightly-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *' # 3 am UTC every day

permissions:
contents: read

jobs:
code-check:
uses: ./.github/workflows/code-check.yml
Expand All @@ -11,6 +15,9 @@ jobs:
secrets:
GIST_PAT: ${{ secrets.GIST_PAT }}
security-scan:
permissions:
contents: read
pull-requests: read
needs: [unit-tests]
uses: ./.github/workflows/security-scan.yml
secrets:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
branches: [ main, 0.x ]

permissions:
contents: read

jobs:
code-checkers:
uses: ./.github/workflows/code-check.yml
Expand All @@ -13,6 +16,9 @@ jobs:
GIST_PAT: ${{ secrets.GIST_PAT }}

security-scan:
permissions:
contents: read
pull-requests: read
needs: [unit-tests]
uses: ./.github/workflows/security-scan.yml
secrets:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ on:
required: false
description: 'Trigger a major release (optional). Leave empty for regular release.'

permissions:
contents: read

jobs:
integration-tests:
permissions:
contents: read
statuses: write
uses: ./.github/workflows/integration-tests.yml
secrets:
FIREBOLT_CLIENT_ID_STG_NEW_IDN: ${{ secrets.FIREBOLT_CLIENT_ID_STG_NEW_IDN }}
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,24 @@ name: Firebolt Security Scan
on:
workflow_dispatch:
workflow_call:
inputs:
branch:
required: false
type: string
description: 'Branch to run on'
secrets:
FOSSA_TOKEN:
required: true
SONARCLOUD_TOKEN:
required: true

permissions:
contents: read
pull-requests: read

jobs:
security-scan:
runs-on: ubuntu-latest
steps:
- name: "Checkout Code"
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: ${{ inputs.branch }}
persist-credentials: false

- name: "Download coverage report"
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@ name: Unit tests

on:
workflow_call:
inputs:
branch:
required: false
type: string
description: 'Branch to run on'
secrets:
GIST_PAT:
required: true
push:
branches: [ main, 0.x ]

permissions:
contents: read

jobs:
unit-tests:
runs-on: ubuntu-latest
Expand All @@ -25,7 +23,7 @@ jobs:
- name: Check out code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: ${{ inputs.branch }}
persist-credentials: false

- name: Set up Python 3.10
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
Expand Down
Loading