Skip to content

Commit

Permalink
add permissions and pin action versions (isl-org#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminum authored Aug 23, 2024
1 parent 452e0a3 commit 742e7d2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

name: Build artifacts

permissions: read-all

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
Expand All @@ -19,6 +21,9 @@ jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-18.04

permissions:
contents: write

strategy:
matrix:
Expand Down Expand Up @@ -54,7 +59,7 @@ 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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Download model files
run: |
Expand All @@ -66,7 +71,7 @@ jobs:
uses: ./.github/actions/docker-action

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
with:
name: artifact_${{ matrix.configuration }}
path: |
Expand Down

0 comments on commit 742e7d2

Please sign in to comment.