Skip to content

Commit

Permalink
Merge pull request #376 from musicEnfanthen/ftr/harden-actions
Browse files Browse the repository at this point in the history
ci(gh-actions): harden actions
  • Loading branch information
roewenstrunk authored May 15, 2024
2 parents 28d5e8b + de87f9e commit 2328b8f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
types: [ opened, synchronize, reopened ]
branches: [ develop, main ]

permissions:
contents: read

env:
DOCKER_IMAGE: bwbohl/sencha-cmd

Expand All @@ -18,10 +21,10 @@ jobs:

steps:
- name: Chekout repository
uses: actions/checkout@v4
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4

- name: Get short sha
uses: benjlevesque/short-sha@v3.0
uses: benjlevesque/short-sha@599815c8ee942a9616c92bcfb4f947a3b670ab0b # v3.0
id: short-sha
with:
length: 7
Expand All @@ -31,7 +34,7 @@ jobs:

- name: Upload Artifacts to action run
if: github.repository == 'Edirom/Edirom-Online'
uses: actions/upload-artifact@v4.3.1
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
# The name that the artifact will be made available under
name: EdiromOnline_${{ steps.short-sha.outputs.sha }}.zip
Expand Down

0 comments on commit 2328b8f

Please sign in to comment.