chore(ci): pin actions to shas (#3769)
This commit is contained in:
30
.github/workflows/ios-ci.yml
vendored
30
.github/workflows/ios-ci.yml
vendored
@@ -38,14 +38,14 @@ jobs:
|
||||
outputs:
|
||||
should_skip: ${{ github.event_name != 'workflow_dispatch' && steps.changed-files-yaml.outputs.ios_any_modified != 'true' }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Get all iOS files that have changed
|
||||
if: github.event_name != 'workflow_dispatch'
|
||||
id: changed-files-yaml
|
||||
uses: tj-actions/changed-files@v46
|
||||
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46
|
||||
with:
|
||||
files_yaml_from_source_file: .github/changed-files.yml
|
||||
|
||||
@@ -72,13 +72,13 @@ jobs:
|
||||
working-directory: platform/ios
|
||||
shell: bash
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Cache Bazel
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4
|
||||
with:
|
||||
key: ${{ runner.os }}-bazel-${{ hashFiles('.bazelversion', '.bazelrc', 'WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel') }}
|
||||
restore-keys: |
|
||||
@@ -141,7 +141,7 @@ jobs:
|
||||
zip -r "$render_test_app_dir"/RenderTest.xctest.zip RenderTest.xctest
|
||||
echo render_test_artifacts_dir="$render_test_app_dir" >> "$GITHUB_ENV"
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: ios-render-test
|
||||
retention-days: 3
|
||||
@@ -168,7 +168,7 @@ jobs:
|
||||
zip -r "$ios_cpp_test_app_dir"/CppUnitTests.xctest.zip CppUnitTests.xctest
|
||||
echo ios_cpp_test_artifacts_dir="$ios_cpp_test_app_dir" >> "$GITHUB_ENV"
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: ios-cpp-unit-tests
|
||||
retention-days: 3
|
||||
@@ -189,7 +189,7 @@ jobs:
|
||||
|
||||
- name: Upload size test as artifact (Bloaty)
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
with:
|
||||
name: ios-size-test-files
|
||||
retention-days: 3
|
||||
@@ -200,7 +200,7 @@ jobs:
|
||||
|
||||
- name: Configure AWS Credentials
|
||||
if: github.ref == 'refs/heads/main' && vars.OIDC_AWS_ROLE_TO_ASSUME
|
||||
uses: aws-actions/configure-aws-credentials@v4
|
||||
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4
|
||||
with:
|
||||
aws-region: us-west-2
|
||||
role-to-assume: ${{ vars.OIDC_AWS_ROLE_TO_ASSUME }}
|
||||
@@ -229,14 +229,14 @@ jobs:
|
||||
working-directory: platform/ios
|
||||
shell: bash
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
|
||||
- name: VERSION file changed
|
||||
id: version-file-ios-changed
|
||||
uses: tj-actions/changed-files@v46
|
||||
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46
|
||||
with:
|
||||
files: platform/ios/VERSION
|
||||
|
||||
@@ -247,7 +247,7 @@ jobs:
|
||||
(github.event_name == 'push' && steps.version-file-ios-changed.outputs.any_changed == 'true')
|
||||
run: echo make_release=true >> "$GITHUB_ENV"
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
|
||||
if: env.make_release
|
||||
with:
|
||||
node-version-file: ".nvmrc"
|
||||
@@ -293,7 +293,7 @@ jobs:
|
||||
cat changelog_for_version.md
|
||||
|
||||
- name: Configure AWS Credentials
|
||||
uses: aws-actions/configure-aws-credentials@v4
|
||||
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4
|
||||
with:
|
||||
aws-region: us-west-2
|
||||
role-to-assume: ${{ vars.OIDC_AWS_ROLE_TO_ASSUME }}
|
||||
@@ -320,7 +320,7 @@ jobs:
|
||||
- name: Release (GitHub)
|
||||
if: env.make_release
|
||||
id: github_release
|
||||
uses: softprops/action-gh-release@v2
|
||||
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2
|
||||
with:
|
||||
name: ios-v${{ env.version }}
|
||||
files: |
|
||||
@@ -334,7 +334,7 @@ jobs:
|
||||
# needed to trigger workflow for Swift Package Index release
|
||||
- name: Generate token
|
||||
if: env.make_release
|
||||
uses: actions/create-github-app-token@v2
|
||||
uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2
|
||||
id: generate_token
|
||||
with:
|
||||
app-id: ${{ secrets.MAPLIBRE_NATIVE_BOT_APP_ID }}
|
||||
@@ -378,7 +378,7 @@ jobs:
|
||||
runs-on: macos-14
|
||||
if: needs.pre_job.outputs.should_skip != 'true'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
|
||||
Reference in New Issue
Block a user