Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(workflows): upgrade workflow actions #2830

Merged
merged 9 commits into from Jun 28, 2023
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Expand Up @@ -17,3 +17,9 @@ updates:
# Ignore all patch updates.
- dependency-name: '*'
update-types: ["version-update:semver-patch"]

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
cweider marked this conversation as resolved.
Show resolved Hide resolved
interval: "monthly"
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-build.yml
Expand Up @@ -32,7 +32,7 @@ jobs:
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/lint.yml
Expand Up @@ -12,9 +12,9 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2-beta
- uses: actions/checkout@v3

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
# Once codebase is updated, this can easily be changed to any specific version.
python-version: "3.11"
Expand All @@ -32,7 +32,7 @@ jobs:

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock')}}-v20210414
Expand Down Expand Up @@ -113,11 +113,11 @@ jobs:
# in version 3.9, but someday we hope to simplify this again.
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2-beta
- uses: actions/checkout@v3

- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: "3.9"

- name: isort Import Sorter
uses: isort/isort-action@v0.1.0
uses: isort/isort-action@v1
2 changes: 1 addition & 1 deletion .github/workflows/semgrep.yml
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
name: Check
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
ref: main
- name: Semgrep
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sentry-release.yml
Expand Up @@ -9,7 +9,7 @@ jobs:
createSentryRelease:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v3
- name: Create a Sentry.io release
uses: getsentry/action-release@v1.2.1
env:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/tests.yml
Expand Up @@ -22,7 +22,7 @@ jobs:
tag_flags: ["--exclude-tag selenium", "--tag selenium"]
steps:
- name: Check out solr
uses: actions/checkout@v2-beta
uses: actions/checkout@v3
with:
repository: freelawproject/courtlistener-solr-server
ref: main
Expand All @@ -39,7 +39,7 @@ jobs:
sudo find data -type f -exec chmod 664 {} \;
sudo find solr -type f -exec chmod 664 {} \;
- name: Check out CourtListener
uses: actions/checkout@v2-beta
uses: actions/checkout@v3
with:
path: courtlistener

Expand All @@ -58,25 +58,25 @@ jobs:
# Build and cache docker images so tests are always run on the latest
# dependencies
- name: Set up docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Cache Docker celery layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache-celery
key: ${{ runner.os }}-buildx-celery-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-celery-
- name: Build latest docker django image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
file: docker/django/Dockerfile
push: true
Expand All @@ -87,7 +87,7 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
- name: Build latest docker celery image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
file: docker/django/Dockerfile
push: true
Expand Down