Skip to content

Update github/codeql-action action to v4.34.1 #392

Update github/codeql-action action to v4.34.1

Update github/codeql-action action to v4.34.1 #392

Workflow file for this run

---
name: format
on:
pull_request:
types:
- opened
- synchronize
- reopened
- closed
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
format:
runs-on: ubuntu-latest
env:
SAFE_CHAIN_MINIMUM_PACKAGE_AGE_HOURS: 168 # 7 days
steps:
- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
with:
app-id: ${{ secrets.PROJECT_AUTOMATION_APP_ID }}
private-key: ${{ secrets.PROJECT_AUTOMATION_PRIVATE_KEY }}
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha || github.sha }}
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
if: github.event_name != 'pull_request' || github.event.action != 'closed'
with:
bun-version-file: .bun-version
- if: github.event_name != 'pull_request' || github.event.action != 'closed'
run: curl -fsSL "https://github.com/AikidoSec/safe-chain/releases/download/$(cat .safe-chain-version)/install-safe-chain.sh" | sh -s -- --ci
- name: Install
if: github.event_name != 'pull_request' || github.event.action != 'closed'
run: |
bun safe-chain-verify
bun install
- run: bun run fix
if: github.event_name != 'pull_request' || github.event.action != 'closed'
- run: bun run build
if: github.event_name != 'pull_request' || github.event.action != 'closed'
- run: |
echo "export const version: string = \"$(yq -r .version package.json)\";" > src/version.ts
if: github.event_name != 'pull_request' || github.event.action != 'closed'
- uses: dev-hato/actions-diff-pr-management@5cd3792bc98beed11cda90898bc81af6bfa199af # v2.2.5
with:
github-token: ${{steps.generate_token.outputs.token}}
branch-name-prefix: fix-format
pr-title-prefix: Fix format
pr-description-prefix: CI fixed format.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true