ci: pin GitHub Actions to SHAs (#4932)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Yusuke Wada · committed by GitHub · parent f10dee8 · Browse files · 6 files·+64 added−49 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
6 files+64 added−49 removed
- other:+64 added−49 removed
Provenance
- Commit
16c4e38- Tree
a1cc0b8- Author
Yusuke Wada <yusuke@kamawada.com>- Committer
GitHub <noreply@github.com>- Parent
f10dee8
6 files changed+64 added−49 removed
modified:.github/actions/perf-measures/action.yml+3 added-4 removed
8 unmodified lines91011121314131415161725 unmodified lines4344454648474849505152535455565857585960613 unmodified lines8 unmodified lines
runs: using: 'composite' steps: - uses: actions/checkout@v6 - uses: oven-sh/setup-bun@v2 - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 with: bun-version-file: '.tool-versions' - run: | bun install --frozen-lockfile25 unmodified lines shell: bash
- name: Run octocov if: ${{ inputs.target-ref == 'auto' }} uses: k1LoW/octocov-action@v1 uses: k1LoW/octocov-action@b3b6ee60482a667950f87553abf1df63217235d9 # v1 with: config: perf-measures/.octocov.consolidated.perf-measures.yml env: OCTOCOV_CUSTOM_METRICS_BUNDLE_SIZE_CHECK: perf-measures/bundle-check/size.json OCTOCOV_CUSTOM_METRICS_DIAGNOSTICS_TSC: perf-measures/type-check/diagnostics-tsc.json OCTOCOV_CUSTOM_METRICS_DIAGNOSTICS_TSGO: perf-measures/type-check/diagnostics-tsgo.json
- name: Run octocov with custom target ref if: ${{ inputs.target-ref == 'main' }} uses: k1LoW/octocov-action@v1 uses: k1LoW/octocov-action@b3b6ee60482a667950f87553abf1df63217235d9 # v1 with: config: perf-measures/.octocov.consolidated.perf-measures.main.yml env: OCTOCOV_GITHUB_REF: 'refs/heads/main'3 unmodified linesmodified:.github/workflows/autofix.yml+3 added-3 removed
17 unmodified lines18192021222322232425262728293030313217 unmodified lines runs-on: ubuntu-latest if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} steps: - name: Checkout uses: actions/checkout@v6 - uses: oven-sh/setup-bun@v2 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 with: bun-version-file: '.tool-versions' - run: bun install --frozen-lockfile - run: bun run format:fix - run: bun run lint:fix - name: Apply fixes uses: autofix-ci/action@v1 uses: autofix-ci/action@c5b2d67aa2274e7b5a18224e8171550871fc7e4a # v1 with: commit-message: 'ci: apply automated fixes'modified:.github/workflows/ci.yml+41 added-35 removed
9 unmodified lines10 - 'README.md'11 - '.gitignore'12 - 'LICENSE'13 14+permissions:15+ contents: read16+17 jobs:18 coverage:19 name: 'Coverage'20 runs-on: ubuntu-latest1 unmodified line22 - main23 - bun24 - deno25 steps:23- - uses: actions/checkout@v624- - uses: actions/download-artifact@v626+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v627+ - uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v628 with:29 pattern: coverage-*30 merge-multiple: true31 path: ./coverage29- - uses: codecov/codecov-action@v532+ - uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v533 with:34 fail_ci_if_error: true35 directory: ./coverage36 37 main:38 name: 'Main'39 runs-on: ubuntu-latest40 steps:38- - uses: actions/checkout@v639- - uses: actions/setup-node@v641+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v642+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v643 with:44 node-version-file: '.tool-versions'42- - uses: oven-sh/setup-bun@v245+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v246 with:47 bun-version-file: '.tool-versions'48 - run: bun install --frozen-lockfile49 - run: bun run format50 - run: bun run lint51 - run: bun run editorconfig-checker -format github-actions52 - run: bun run build53 - run: bun run test51- - uses: actions/upload-artifact@v554+ - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v555 with:56 name: coverage-main57 path: coverage/58 59 jsr-dry-run:60 name: "Checking if it's valid for JSR"61 runs-on: ubuntu-latest62 steps:60- - uses: actions/checkout@v661- - uses: denoland/setup-deno@v263+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v664+ - uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v265 with:66 deno-version-file: '.tool-versions'64- - uses: oven-sh/setup-bun@v267+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v268 with:69 bun-version-file: '.tool-versions'70 - run: bunx jsr publish --dry-run71 72 deno:73 name: 'Deno'74 runs-on: ubuntu-latest75 steps:73- - uses: actions/checkout@v674- - uses: denoland/setup-deno@v276+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v677+ - uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v278 with:79 deno-version-file: '.tool-versions'80 - run: env NAME=Deno deno test --coverage=coverage/raw/deno-runtime --allow-read --allow-env --allow-write --allow-net -c runtime-tests/deno/deno.json runtime-tests/deno81 - run: deno test -c runtime-tests/deno-jsx/deno.precompile.json --coverage=coverage/raw/deno-precompile-jsx runtime-tests/deno-jsx82 - run: deno test -c runtime-tests/deno-jsx/deno.react-jsx.json --coverage=coverage/raw/deno-react-jsx runtime-tests/deno-jsx83 - run: grep -R '"url":' coverage | grep -v runtime-tests | sed -e 's/.*file:..//;s/.,//' | xargs deno cache --unstable-sloppy-imports84 - run: deno coverage --lcov > coverage/deno-runtime-coverage-lcov.info82- - uses: actions/upload-artifact@v585+ - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v586 with:87 name: coverage-deno88 path: coverage/89 90 bun:91 name: 'Bun'92 runs-on: ubuntu-latest93 steps:91- - uses: actions/checkout@v692- - uses: oven-sh/setup-bun@v294+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v695+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v296 with:97 bun-version-file: '.tool-versions'98 - run: bun install --frozen-lockfile99 - run: bun run test:bun97- - uses: actions/upload-artifact@v5100+ - uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5101 with:102 name: coverage-bun103 path: coverage/104 105 bun-windows:106 name: 'Bun - Windows'107 runs-on: windows-latest108 steps:106- - uses: actions/checkout@v6107- - uses: oven-sh/setup-bun@v2109+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6110+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2111 with:112 bun-version-file: '.tool-versions'113 - run: bun run test:bun114 115 fastly:116 name: 'Fastly Compute'117 runs-on: ubuntu-latest118 steps:116- - uses: actions/checkout@v6117- - uses: oven-sh/setup-bun@v2119+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6120+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2121 with:122 bun-version-file: '.tool-versions'123 - run: bun install --frozen-lockfile124 - run: bun run build5 unmodified lines130 strategy:131 matrix:132 node: ['18.18.2', '20.x', '22.x']133 steps:131- - uses: actions/checkout@v6132- - uses: actions/setup-node@v6134+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6135+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6136 with:137 node-version: ${{ matrix.node }}135- - uses: oven-sh/setup-bun@v2138+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2139 with:140 bun-version-file: '.tool-versions'141 - run: bun install --frozen-lockfile142 - run: bun run build2 unmodified lines145 workerd:146 name: 'workerd'147 runs-on: ubuntu-latest148 steps:146- - uses: actions/checkout@v6147- - uses: actions/setup-node@v6149+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6150+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6151 with:152 node-version-file: '.tool-versions'150- - uses: oven-sh/setup-bun@v2153+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2154 with:155 bun-version-file: '.tool-versions'156 - run: bun install --frozen-lockfile157 - run: bun run build2 unmodified lines160 lambda:161 name: 'AWS Lambda'162 runs-on: ubuntu-latest163 steps:161- - uses: actions/checkout@v6162- - uses: oven-sh/setup-bun@v2164+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6165+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2166 with:167 bun-version-file: '.tool-versions'168 - run: bun install --frozen-lockfile169 - run: bun run build2 unmodified lines172 lambda-edge:173 name: 'Lambda@Edge'174 runs-on: ubuntu-latest175 steps:173- - uses: actions/checkout@v6174- - uses: oven-sh/setup-bun@v2176+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6177+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2178 with:179 bun-version-file: '.tool-versions'180 - run: bun install --frozen-lockfile181 - run: bun run build3 unmodified lines185 name: 'Type & Bundle size Check on PR'186 runs-on: ubuntu-latest187 if: github.event_name == 'pull_request'188 steps:186- - uses: actions/checkout@v6189+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6190 - uses: ./.github/actions/perf-measures191 with:192 target-ref: 'auto'193 194 http-benchmark-on-pr:195 name: 'HTTP Speed Check on PR'196 runs-on: ubuntu-latest197 if: github.event_name == 'pull_request'198+ permissions:199+ contents: read200+ pull-requests: write201 steps:196- - uses: actions/checkout@v6197- - uses: oven-sh/setup-bun@v2202+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6203+ - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2204 with:205 bun-version-file: '.tool-versions'206 - run: bun install --frozen-lockfile207 - name: Install bombardier5 unmodified lines213 run: |214 cd benchmarks/http-server215 bun run benchmark.ts216 - name: Comment PR211- uses: actions/github-script@v7217+ uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7218 if: github.event.pull_request.head.repo.full_name == github.repository219 with:220 script: |221 const fs = require('fs');38 unmodified lines260 name: 'Type & Bundle size Check on Main'261 runs-on: ubuntu-latest262 if: github.ref == 'refs/heads/main'263 steps:258- - uses: actions/checkout@v6264+ - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6265 - uses: ./.github/actions/perf-measures266 with:267 target-ref: 'main'modified:.github/workflows/cr.yml+10 added-3 removed
8 unmodified lines910111213141516171819202122232425192627282923303132332734353637388 unmodified lines8 unmodified linesconcurrency: group: ${{ github.workflow }}-${{ github.event.number }} # Concurrency group for each PR cancel-in-progress: true # Cancel in progress builds for the same PR
permissions: contents: read
jobs: publish: if: github.repository == 'honojs/hono' && (github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'cr-tracked')) runs-on: ubuntu-latest name: 'Publish: pkg.pr.new' permissions: contents: read id-token: write pull-requests: write steps: - uses: actions/checkout@v6 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: fetch-depth: 0
- uses: actions/setup-node@v6 - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 with: node-version-file: '.tool-versions'
- uses: oven-sh/setup-bun@v2 - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 with: bun-version-file: '.tool-versions'
- name: Install Dependencies8 unmodified linesmodified:.github/workflows/no-response.yml+2 added-2 removed
3 unmodified lines45678891011121314151616171819206 unmodified lines3 unmodified lines schedule: - cron: '0 0 * * *'
permissions: contents: write contents: read issues: write
jobs: stale: runs-on: ubuntu-latest steps: - name: Close stale issues with "not bug" label uses: actions/stale@v8 uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 # v8 with: days-before-stale: 7 days-before-close: 2 stale-issue-message: 'This issue has been marked as stale due to inactivity.'6 unmodified linesmodified:.github/workflows/release.yml+5 added-2 removed
3 unmodified lines45678910111213142 unmodified lines17181920182122202324252627283 unmodified lines push: tags: - '*'
permissions: contents: read
jobs: jsr: name: publish-to-jsr runs-on: ubuntu-latest2 unmodified lines contents: read id-token: write
steps: - uses: actions/checkout@v6 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Install deno uses: denoland/setup-deno@v2 uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2 with: deno-version-file: '.tool-versions' - run: deno install --no-lock --allow-scripts - name: Publish to JSR run: deno run -A jsr:@david/publish-on-tag@0.1.4