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
27 changes: 27 additions & 0 deletions .github/workflows/actions-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Actions Lint

on:
workflow_call:

permissions:
contents: read
actions: read

jobs:
lint:
name: Lint Workflow Files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false

- name: Run actionlint
uses: docker://rhysd/actionlint:1.7.12
with:
args: -color

- name: Run zizmor
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
with:
advanced-security: false
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI

on:
push:
branches: [main]
paths: ['.github/workflows/**']
pull_request:
branches: [main]
paths: ['.github/workflows/**']

permissions:
contents: read
actions: read

jobs:
actions-lint:
uses: ./.github/workflows/actions-lint.yml
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
# .github

yellston-com organization の共有設定・Reusable Workflows を管理するリポジトリです。

## Reusable Workflows

### Actions Lint

[actionlint](https://github.com/rhysd/actionlint) と [zizmor](https://github.com/zizmorcore/zizmor) でワークフローファイルを lint します。

> [!TIP]
> zizmor の unpinned-uses 警告を回避するには `@main` をコミットハッシュに置き換えてください。

```yaml
name: Actions Lint

on:
push:
branches: [main]
paths: ['.github/workflows/**']
pull_request:
branches: [main]
paths: ['.github/workflows/**']

permissions:
contents: read
actions: read

jobs:
lint:
uses: yellston-com/.github/.github/workflows/actions-lint.yml@main
```
Loading