diff --git a/.github/workflows/check-template-branch.yml b/.github/workflows/check-template-branch.yml index f407719..882f452 100644 --- a/.github/workflows/check-template-branch.yml +++ b/.github/workflows/check-template-branch.yml @@ -5,13 +5,16 @@ on: branches: - main +permissions: + contents: read + jobs: check_template_branch: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Get create-hono version id: get_version diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 725299c..0ba2c2d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,9 @@ on: pull_request: branches: ['*'] +permissions: + contents: read + jobs: ci: runs-on: ubuntu-latest @@ -12,12 +15,12 @@ jobs: matrix: node-version: [20.x, 22.x, 24.x] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v6 + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 with: node-version: ${{ matrix.node-version }} - - uses: oven-sh/setup-bun@v2 + - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 - run: bun install - run: bun run format - run: bun run lint