Skip to content

Commit a3211f3

Browse files
authored
Merge pull request #4 from tarappo/github_actions/use_actionlint
2 parents e4854f8 + 5c7a544 commit a3211f3

3 files changed

Lines changed: 43 additions & 4 deletions

File tree

.github/workflows/actionlint.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Lint GitHub Actions Workflows
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/*.yml'
7+
- '.github/workflows/*.yaml'
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
permissions:
14+
contents: read
15+
pull-requests: write
16+
checks: write
17+
actions: write
18+
jobs:
19+
lint:
20+
runs-on: ubuntu-latest
21+
timeout-minutes: 10
22+
steps:
23+
- name: checkout
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
- name: Generate GitHub App Token
26+
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
27+
id: generate-token
28+
with:
29+
app_id: ${{ secrets.APP_ID }}
30+
private_key: ${{ secrets.APP_PRIVATE_KEY }}
31+
- name: run actionlint
32+
uses: reviewdog/action-actionlint@db58217885f9a6570da9c71be4e40ec33fe44a1f # v1.65.0
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
reporter: github-pr-review
36+
- name: run pinact-actions
37+
uses: suzuki-shunsuke/pinact-action@d735505f3decf76fca3fdbb4c952e5b3eba0ffdd # v0.1.2
38+
with:
39+
github_token: ${{ steps.generate-token.outputs.token }}

.github/workflows/merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
all_tests:
1313
runs-on: macos-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616
- name: Cache bundle directory
17-
uses: actions/cache@v4
17+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
1818
with:
1919
path: vendor/bundle
2020
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}

.github/workflows/pull_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
main_tests:
1212
runs-on: macos-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1515
- name: Cache bundle directory
16-
uses: actions/cache@v4
16+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
1717
with:
1818
path: vendor/bundle
1919
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}

0 commit comments

Comments
 (0)