Skip to content

Commit

Permalink
fix(github): pin actions to sha
Browse files Browse the repository at this point in the history
  • Loading branch information
timothystewart6 committed Aug 30, 2022
1 parent 1148ce8 commit 9382c48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
5 changes: 3 additions & 2 deletions demos/jekyll-demo/.github/workflows/pages-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # 3.0.2

with:
fetch-depth: 0 # for posts's lastmod

- name: Setup Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@0a29871fe2b0200a17a4497bae54fe5df0d973aa #1.115.3
with:
ruby-version: 2.7
bundler-cache: true
Expand Down
13 changes: 7 additions & 6 deletions docker/custom-image/ci/github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,30 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # 3.0.2

-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@8b122486cedac8393e77aa9734c3528886e4a1a8 # 2.0.0
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6 # 2.0.0
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b # 2.0.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.PAT }}
-
name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b # 2.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@c84f38281176d4c9cdb1626ffafcd6b3911b5d94 # 3.1.1
with:
context: .
file: ./Dockerfile
Expand Down

0 comments on commit 9382c48

Please sign in to comment.