mirror of
https://github.com/coredns/coredns.git
synced 2025-12-06 02:15:11 -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:
14
.github/workflows/go.test.yml
vendored
14
.github/workflows/go.test.yml
vendored
@@ -6,13 +6,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492
|
||||
with:
|
||||
go-version: '1.17.0'
|
||||
id: go
|
||||
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
@@ -28,13 +28,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492
|
||||
with:
|
||||
go-version: '1.17.0'
|
||||
id: go
|
||||
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
@@ -47,13 +47,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492
|
||||
with:
|
||||
go-version: '1.17.0'
|
||||
id: go
|
||||
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
@@ -71,7 +71,7 @@ jobs:
|
||||
run: sudo apt-get install make curl
|
||||
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
|
||||
|
||||
- name: Test Makefile.release
|
||||
run: make GITHUB_ACCESS_TOKEN=x -n release github-push -f Makefile.release
|
||||
|
||||
Reference in New Issue
Block a user