From 3f4ed50e54dd0950df04a3c89973feaace93d34a Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Fri, 27 Sep 2024 11:18:44 -0400 Subject: [PATCH] MNT: Use hash for Action workflow versions and update if needed --- .github/workflows/build.yml | 8 ++++---- .github/workflows/prs.yml | 6 +++--- .github/workflows/test-scripts.yml | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 80ea0ec3..bd75a525 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,10 +14,10 @@ jobs: name: "Execute and convert the notebooks to HTML" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: python-version: 3.12 @@ -40,13 +40,13 @@ jobs: run: | echo "::set-output name=artifactName::rendered-tutorials" - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 with: name: ${{ steps.nameartifact.outputs.artifactName }} path: _build - name: Dispatch Learn Astropy deployment - uses: peter-evans/repository-dispatch@26b39ed245ab8f31526069329e112ab2fb224588 + uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0 if: ${{ (github.event_name == 'push') && (github.ref == 'refs/heads/main') && (github.repository == 'astropy/astropy-tutorials')}} with: token: ${{ secrets.DISPATCH_GITHUB_TOKEN }} diff --git a/.github/workflows/prs.yml b/.github/workflows/prs.yml index e3b0bc94..d3c2b4ee 100644 --- a/.github/workflows/prs.yml +++ b/.github/workflows/prs.yml @@ -16,12 +16,12 @@ jobs: name: "Execute and convert the notebooks to HTML" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: python-version: 3.12 @@ -52,7 +52,7 @@ jobs: run: | echo "::set-output name=artifactName::rendered-tutorials" - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 with: name: ${{ steps.nameartifact.outputs.artifactName }} path: _build diff --git a/.github/workflows/test-scripts.yml b/.github/workflows/test-scripts.yml index 82c5bd1c..7b225c94 100644 --- a/.github/workflows/test-scripts.yml +++ b/.github/workflows/test-scripts.yml @@ -19,12 +19,12 @@ jobs: runs-on: ubuntu-latest if: contains(github.event.pull_request.labels.*.name, 'infrastructure') steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v4.6.0 + uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 with: python-version: 3.9