diff options
| author | naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com> | 2022-03-18 20:47:20 +0000 |
|---|---|---|
| committer | naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com> | 2022-03-18 20:47:20 +0000 |
| commit | dd737bd7554846ad85ed98003c516da35ef34caa (patch) | |
| tree | d28da25da1cbb999a6c66de3ab99a8090e3c679d /.github/workflows/binaries_release0.yml | |
| parent | 2824940ecf62073e00a4d7e2a069b693082b31cf (diff) | |
| download | seaweedfs-dd737bd7554846ad85ed98003c516da35ef34caa.tar.xz seaweedfs-dd737bd7554846ad85ed98003c516da35ef34caa.zip | |
Pin actions to a full length commit SHA
- Pinned actions by SHA https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies
- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
>Pin actions to a full length commit SHA
>Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload.
https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions
Diffstat (limited to '.github/workflows/binaries_release0.yml')
| -rw-r--r-- | .github/workflows/binaries_release0.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/binaries_release0.yml b/.github/workflows/binaries_release0.yml index 14302dac0..300757a70 100644 --- a/.github/workflows/binaries_release0.yml +++ b/.github/workflows/binaries_release0.yml @@ -23,9 +23,9 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 + - uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2 - name: Go Release Binaries Normal Volume Size - uses: wangyoucao577/go-release-action@v1.22 + uses: wangyoucao577/go-release-action@16624612d4e2b73de613857a362d294700207fff # v1.22 with: github_token: ${{ secrets.GITHUB_TOKEN }} goos: ${{ matrix.goos }} @@ -39,7 +39,7 @@ jobs: binary_name: weed asset_name: "${{ matrix.goos }}_${{ matrix.goarch }}" - name: Go Release Large Disk Binaries - uses: wangyoucao577/go-release-action@v1.22 + uses: wangyoucao577/go-release-action@16624612d4e2b73de613857a362d294700207fff # v1.22 with: github_token: ${{ secrets.GITHUB_TOKEN }} goos: ${{ matrix.goos }} |
