Skip to content

Commit

Permalink
chore: pin all actions in workflows
Browse files Browse the repository at this point in the history
fixes #366
  • Loading branch information
sarisia committed Nov 15, 2022
1 parent 1875698 commit 2c8ccbf
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 19 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ jobs:
contents: write
packages: read
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8

- uses: docker/login-action@v2
- uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

- name: build
uses: devcontainers/ci@v0.2
uses: devcontainers/ci@3dcee0e5dada9275fbd8e4d76ee9de43998be886
with:
imageName: ghcr.io/${{ github.repository }}/devcontainer
cacheFrom: ghcr.io/${{ github.repository }}/devcontainer
Expand All @@ -31,12 +31,14 @@ jobs:
npm run build
- name: Build and Tag
uses: JasonEtco/build-and-tag-action@v2
# temporary use own fork until
# uses: JasonEtco/build-and-tag-action@v2
uses: sarisia/build-and-tag-action@86c2f7fbe7691ec3529884d45038295c0aa3ce35
env:
GITHUB_TOKEN: ${{ github.token }}

- name: report result
uses: sarisia/actions-status-discord@v1
uses: sarisia/actions-status-discord@9d12cc6d7c8d55f9cbe5efa643117f8c7423f4cf
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
Expand All @@ -60,7 +62,7 @@ jobs:
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
with:
ref: ${{ github.ref_name }}

Expand All @@ -86,7 +88,7 @@ jobs:
permissions:
actions: read
steps:
- uses: actions/github-script@v3
- uses: actions/github-script@f05a81df23035049204b043b50c3322045ce7eb3
id: ghapi
with:
result-encoding: string
Expand All @@ -101,7 +103,7 @@ jobs:
)
return jobs.filter(job => job.conclusion !== null && job.conclusion !== "success")
.length > 0 ? 'failure' : 'success'
- uses: sarisia/actions-status-discord@v1
- uses: sarisia/actions-status-discord@9d12cc6d7c8d55f9cbe5efa643117f8c7423f4cf
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test-and-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ jobs:
packages: read
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8

- uses: docker/login-action@v2
- uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

- name: build
uses: devcontainers/ci@v0.2
uses: devcontainers/ci@3dcee0e5dada9275fbd8e4d76ee9de43998be886
with:
imageName: ghcr.io/${{ github.repository }}/devcontainer
cacheFrom: ghcr.io/${{ github.repository }}/devcontainer
Expand All @@ -37,16 +37,16 @@ jobs:
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8

- uses: docker/login-action@v2
- uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

- name: build
uses: devcontainers/ci@v0.2
uses: devcontainers/ci@3dcee0e5dada9275fbd8e4d76ee9de43998be886
with:
imageName: ghcr.io/${{ github.repository }}/devcontainer
cacheFrom: ghcr.io/${{ github.repository }}/devcontainer
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
permissions:
actions: read
steps:
- uses: actions/github-script@v3
- uses: actions/github-script@f05a81df23035049204b043b50c3322045ce7eb3
id: ghapi
with:
result-encoding: string
Expand All @@ -105,7 +105,7 @@ jobs:
.length > 0 ? 'failure' : 'success'
- name: report result
uses: sarisia/actions-status-discord@v1
uses: sarisia/actions-status-discord@9d12cc6d7c8d55f9cbe5efa643117f8c7423f4cf
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/update-devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8

- uses: docker/login-action@v2
- uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

- uses: devcontainers/ci@v0.2
- uses: devcontainers/ci@3dcee0e5dada9275fbd8e4d76ee9de43998be886
with:
imageName: ghcr.io/${{ github.repository }}/devcontainer
push: always

0 comments on commit 2c8ccbf

Please sign in to comment.