mirror of
https://github.com/coredns/coredns.git
synced 2025-12-24 19:15:15 -05:00
Fix pinning of github actions (#5213)
It is recommended to pin github actions with hash so that an action is not posing an unknown security risk (as the actions itself is not written by us). Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
8
.github/workflows/reviewdog.yml
vendored
8
.github/workflows/reviewdog.yml
vendored
@@ -10,14 +10,14 @@ jobs:
|
||||
name: Go Fmt
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
||||
- run: find . -not -path '*/\.git/*' -type f -name '*.go' -exec gofmt -s -w {} \+
|
||||
- uses: reviewdog/action-suggester@v1
|
||||
- uses: reviewdog/action-suggester@650721aae74ec5d8b0cae75cf980720f1b60cef3
|
||||
|
||||
whitespace:
|
||||
name: Whitespace
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
||||
- run: find . -not -path '*/\.git/*' -type f -not -name '*.go' -exec sed -i 's/[[:space:]]\{1,\}$//' {} \+
|
||||
- uses: reviewdog/action-suggester@v1
|
||||
- uses: reviewdog/action-suggester@650721aae74ec5d8b0cae75cf980720f1b60cef3
|
||||
|
||||
Reference in New Issue
Block a user