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
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:

migration-order:
name: Migration order
runs-on: depot-ubuntu-24.04-16
runs-on: ubuntu-latest
needs: ci_changes
if: needs.ci_changes.outputs.migration_order == 'true'
steps:
Expand All @@ -132,7 +132,7 @@ jobs:

harness-server-checks:
name: Harness server fmt, clippy, and tests
runs-on: depot-ubuntu-24.04-16
runs-on: ubuntu-latest
needs: ci_changes
if: needs.ci_changes.outputs.harness_server_checks == 'true'
steps:
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:

rust-api:
name: Rust API fmt, clippy, and tests
runs-on: depot-ubuntu-24.04-16
runs-on: ubuntu-latest
needs: ci_changes
if: needs.ci_changes.outputs.rust_api == 'true'
steps:
Expand Down Expand Up @@ -365,7 +365,7 @@ jobs:

slackbotv2-tests:
name: Slackbot v2 tests
runs-on: depot-ubuntu-24.04-16
runs-on: ubuntu-latest
needs: ci_changes
if: needs.ci_changes.outputs.slackbotv2_tests == 'true'
steps:
Expand Down Expand Up @@ -423,7 +423,7 @@ jobs:

discordbot-checks:
name: Discordbot typecheck and tests
runs-on: depot-ubuntu-24.04-16
runs-on: ubuntu-latest
needs: ci_changes
if: needs.ci_changes.outputs.discordbot_checks == 'true'
steps:
Expand Down Expand Up @@ -457,7 +457,7 @@ jobs:

githubbot-checks:
name: Githubbot typecheck and tests
runs-on: depot-ubuntu-24.04-16
runs-on: ubuntu-latest
needs: ci_changes
if: needs.ci_changes.outputs.githubbot_checks == 'true'
steps:
Expand Down Expand Up @@ -491,7 +491,7 @@ jobs:

teamsbot-checks:
name: Teamsbot typecheck and tests
runs-on: depot-ubuntu-24.04-16
runs-on: ubuntu-latest
needs: ci_changes
if: needs.ci_changes.outputs.teamsbot_checks == 'true'
steps:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/console-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,119 +46,119 @@
fi

scan_ruby:
runs-on: depot-ubuntu-24.04-16
runs-on: ubuntu-latest
needs: console_changes
if: needs.console_changes.outputs.relevant == 'true'

steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Set up Ruby
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
with:
working-directory: services/console
bundler-cache: true

- name: Scan for common Rails security vulnerabilities using static analysis
run: bin/brakeman --no-pager

scan_js:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: depot-ubuntu-24.04-16
runs-on: ubuntu-latest
needs: console_changes
if: needs.console_changes.outputs.relevant == 'true'

steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Set up Ruby
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
with:
working-directory: services/console
bundler-cache: true

- name: Scan for security vulnerabilities in JavaScript dependencies
run: bin/importmap audit

lint:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: depot-ubuntu-24.04-16
runs-on: ubuntu-latest
needs: console_changes
if: needs.console_changes.outputs.relevant == 'true'
env:
RUBOCOP_CACHE_ROOT: ${{ github.workspace }}/services/console/tmp/rubocop
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Set up Ruby
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
with:
working-directory: services/console
bundler-cache: true

- name: Prepare RuboCop cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
env:
DEPENDENCIES_HASH: ${{ hashFiles('services/console/.ruby-version', 'services/console/**/.rubocop.yml', 'services/console/**/.rubocop_todo.yml', 'services/console/Gemfile.lock') }}
with:
path: ${{ env.RUBOCOP_CACHE_ROOT }}
key: rubocop-${{ runner.os }}-${{ env.DEPENDENCIES_HASH }}-${{ github.ref_name == github.event.repository.default_branch && github.run_id || 'default' }}
restore-keys: |
rubocop-${{ runner.os }}-${{ env.DEPENDENCIES_HASH }}-

- name: Lint code for consistent style
run: bin/rubocop -f github

test:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: depot-ubuntu-24.04-16
runs-on: ubuntu-latest
needs: console_changes
if: needs.console_changes.outputs.relevant == 'true'

services:
postgres:
image: paradedb/paradedb:0.23.0-pg16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: --health-cmd="pg_isready -U postgres" --health-interval=10s --health-timeout=5s --health-retries=5
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Install packages
run: sudo apt-get update && sudo apt-get install --no-install-recommends -y libvips libpq-dev

- name: Set up Ruby
uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
with:
working-directory: services/console
bundler-cache: true

- name: Verify migrations match the checked-in schema
env:
RAILS_ENV: test
IRON_CONTROL_DB_HOST: localhost
IRON_CONTROL_DB_PORT: 5432
IRON_CONTROL_DB_USERNAME: postgres
IRON_CONTROL_DB_PASSWORD: postgres
run: |
bin/rails db:create db:migrate
git diff --exit-code -- db/schema.rb

- name: Run tests
env:
RAILS_ENV: test
IRON_CONTROL_DB_HOST: localhost
IRON_CONTROL_DB_PORT: 5432
IRON_CONTROL_DB_USERNAME: postgres
IRON_CONTROL_DB_PASSWORD: postgres
# RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
run: bin/rails db:test:prepare test

console-ci-success:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
name: Console CI success
runs-on: ubuntu-latest
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/console-gem-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defaults:

jobs:
scan_gems:
runs-on: depot-ubuntu-24.04-16
runs-on: ubuntu-latest

steps:
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ permissions:
jobs:
build-and-deploy:
name: Build and deploy docs
runs-on: depot-ubuntu-24.04-16
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions: {}

jobs:
publish:
runs-on: depot-ubuntu-24.04-16
runs-on: ubuntu-latest
if: github.event.label.name == 'cyclops'
steps:
- name: Publish event
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
release:
permissions:
contents: write
runs-on: depot-ubuntu-24.04-16
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down